九点   |   二套 · 三套 · 四套 · 五套 · 六套   |   去豆瓣

你好,请 登录注册 · 九点指南
at命令隐藏的陷阱

  昨天晚上八九点钟用at命令设置了一个脚本执行一系列统计运算:
   at -f /path/stats.sh 3:30am tomorrow
  经过讨论,又修改了其中的几个地方,改完的时候我已经饿的不得了,赶紧离开办公室找吃的。也因此,忘了之前想到的一个隐患,我改完了脚本,是不是应该用atrm从任务列表里删除之前添加的命令,重新设置呢?今天早晨来到办公室,检查完统计结果,发现昨天的担忧应验了,果然它是按照老脚本执行的。查了一下man at:
   For both at and batch, commands are read from standard input or the file specified with the -f option and executed.
......    (查看原文)
2007-02-09 11:55

3人推荐“at命令隐藏的陷阱”  ·  ·  ·  ·  ·  · 

  
© 2005-2008 douban.com, all rights reserved
关于豆瓣 · 隐私原则