Quantcast
Channel: Command After Semicolon Not Executed in Crontab? - Super User
Browsing all 3 articles
Browse latest View live

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 Article



Answer 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 Article

Command 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
Browsing all 3 articles
Browse latest View live




Latest Images