|
在SHELL里敲命令:
#ps -aux|grep 'init$'|awk '{$12=b;print $0}' b=`date +%T`>>/home/test 可以执行
但把它放进crontab里就不执行了
*/1 20-23 * * * /bin/ps -aux|/bin/grep 'init$'|/bin/awk '{$12=b;print $0}' b=`/bin/date +%T`>>/home/test
错误信息是:
subject: /bin/ps -aux|/bin/grep 'init$'|/bin/awk '{$12=b;print $0}' b=`/bin/date +
/bin/sh:-c:line1:unexpected EOF while looking for match '`'
/bin/sh:-c:line2:syntax error:unexpected end of file
请问什么原因? |
|