↧
Answer by Kamil Maciorowski for Command After Semicolon Not Executed in Crontab?
This can be replicated by sh -c 'pkill -f "MyExecutable.exe" ; touch /tmp/here.log' Cron runs your command by passing it to a shell (sh or other), so effectively it's very similar to the above line....
View ArticleAnswer by j1b3 for Command After Semicolon Not Executed in Crontab?
This question relates with this one: Running two commands sequentially in a cron job? You should separate the two commands with &&, instead of ;
View ArticleCommand After Semicolon Not Executed in Crontab?
Here is my crontab: 42 17 * * 1-5 /bin/pkill -f 'MyExecutable.exe' ; touch /tmp/here.log And according to /var/log/cron it did run: May 22 17:42:01 server1 CROND[326732]: (myuser) CMD (/bin/pkill -f...
View Article