服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. bash cron wget
  3. 无法让cron追加wget的输出
Intereting Posts
即使E_ALL打开,php不报告错误 nginx重写特定的文件 是否有可能使Apache也适用于JSP页面? Rsync日志parsing器 DNS刚开始解决我的server.prod地址为127.0.53.53 Linux:那个命令可以“中断”机器吗? 如何将sql用户权限限制为只读,同时仍允许存储过程执行? yppasswd的密码规则 Fail2Banfilter错误 在相同的服务器上结合相似的程序 将Web应用程序端点路由到单独的EC2实例 Nginx只对80端口进行外部响应 客户不向SBS 2008报告安全状态 Debian上的SOCKS代理 来自Citrix的SQL Server Report Builder

无法让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