$ */1 * * * * xterm -display :0 -hold -e 'which xterm'
同时会有两个xterm窗口弹出,为什么?
$*/1 * * * * xterm -display :0 -hold -e '/home/name/bin/scriptaaa '
效果很好
$*/1 * * * * xterm -display :0 -hold -e 'scriptaaa'
command not found,为什么?
$ which xterm
/usr/bin/xterm
发布于 2014-04-14 04:25:05
$PATH。通常crontab不继承用户的环境,所以$HOME/bin不在$PATH中https://stackoverflow.com/questions/23051601
复制相似问题