服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. bash cron wget
  3. 无法让cron追加wget的输出
Intereting Posts
具有共享子域的旧/新网站的虚拟主机? 你的sql服务器安装要么是中断的,要么是(不能加载SQLBoot.dll) 站点无法到达 – 连接超时 清漆作为django的静态文件服务器 在networking的AAAconfiguration之后,一个wifi范围扩展器工作吗? VMWare ESXi上的MacOSX Snow Leopard 如何判断Linux磁盘IO是否导致过度(> 1秒)应用程序停顿 MySQL服务器不会在非标准端口上启动 什么是根DNS服务器 PowerShell和远程签名 解决DNS问题 快速的方式来恢复或重新加载/ etc / fstab设置? 通过GPO在空闲时间后禁用强制locking屏幕 虚拟机中的Windows Server 2008服务器,在域中:无法打印,访问被拒绝 iDRAC8无法发送电子邮件; 设置configuration

无法让cron追加wget的输出

我有一个cronjob设置和运行,但日志文件不断覆盖每次运行。 我希望每次运行cron时都要附加wget输出。

为什么是这个,如何解决?

0 0 * * * wget url/script.php -O - >> /home/user/app/logs/logfile 

  • shell参数中的二进制数据
  • Tinydns数据文件用bash更改ip
  • 麻烦Debian $ PATH
  • Riverbed Stringray TrafficManger – API调用Autoscaling
  • 添加一个额外的检查(bash脚本)到sshd服务器

  • curl按enter或ctr + c才能有正确的回应
  • 如何使用–userspec在chroot中设置ulimit
  • Bash脚本:比较path问题
  • 在ssh之后更改用户并执行多个命令
  • 运行脚本启动
 man wget -a logfile --append-output=logfile Append to logfile. This is the same as -o, only it appends to logfile instead of overwriting the old log file. If logfile does not exist, a new file is created. 

试试这个scheme。

  • 当父母退出时终止subprocess
  • bashdate不使用设定的时区
  • “which”命令总是显示正确的文件/哪个二进制文件正在运行?
  • Bash if语句等于上一个命令的输出
  • 从bash运行同一个php脚本的多个实例
  • 运行Bash脚本另一台服务器
  • Bash脚本应该死后继续重生
  • 获取密码到ssh-keygen
  • SVN发布提交问题(调用Bash)
  • 将授权密钥复制到远程服务器的脚本需要四次密码

  • © 2017 服务器 Gind.cn
  • Topics
  •        
  • Powered by Server
  • Privacy Policy