Crontab - simple echo not running

后端 未结 2 1847
迷失自我
迷失自我 2021-02-12 05:00

I\'ve got such situation: I want to schedule a job with crontab on a linux server. I\'m not super-user, so I\'m editing (with crontab -l, editor vim) only my crontab file. For t

2条回答
  •  北恋
    北恋 (楼主)
    2021-02-12 05:24

    For me * * * * * /bin/echo text > file is not working...I don't know why, previleges and everything is set. (This command is running normaly when I execute it as the particular root user, just to clarify this.) This can be solved by injecting the path PATH=$PATH:/bin in my example.

    Instead * * * * * echo text > file is working fine, probably path issue.

    Hope I helped

提交回复
热议问题