Ubuntu Server 14.04 LTS, and I've got the following in a crontab:
00 06 * * 1-5 /usr/local/bin/scribe /etc/local/scribe.1.conf 1&2>> /var/log/local/scribe.1.log
00 15 * * 1-5 killall scribe; sleep 10; /usr/local/bin/scribe /etc/local/scribe.1.conf 1&2>> /var/log/local/scribe.1.log
15 16 * * 1-5 killall scribe
My intention here is to run a program at 6am, kill it at 3pm, and re-run it at 3:00:10pm. What I'm seeing is the log file being created, but remaining empty and never being written to. The user whose crontab this is has write permissions to the log directory, so I'm not sure why the log file remains empty. I have to assume I've made a syntax error or so.
>> /var/log/local/scribe.1.log 2>&1
? – steeldriver Jul 06 '16 at 19:12