lhx2008
V2EX  ›  问与答

有办法查看cron执行的命令的实时结果么

  •  
  •   lhx2008 · Aug 26, 2013 · 2806 views
    This topic created in 4740 days ago, the information mentioned may be changed or developed.
    好吧比较无聊,就是cron执行了些很久的任务,怎么看进度呢(实时结果),就是类似screen -r cron这样的效果
    2 replies    1970-01-01 08:00:00 +08:00
    felix021
        1
    felix021  
       Aug 26, 2013
    在任务里打log。
    clino
        2
    clino  
       Aug 26, 2013
    输出到log文件
    然后用 tail -f xxx.log
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5373 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 51ms · UTC 03:51 · PVG 11:51 · LAX 20:51 · JFK 23:51
    ♥ Do have faith in what you're doing.