On 4/19/11 10:02 AM, Jake Vickers wrote:
On 04/18/2011 04:57 PM, Scott Hughes wrote:
# */10 * * * * root /usr/local/sbin/sync-qmail >/dev/null 2>/dev/null
*/10 * * * * root /usr/local/sbin/sync-qmail
I just got an email from cron on my postmaster account that reads:
"/bin/sh: root: command not found"
And when you remove "root" from your crontab, does it run then? I do
not believe I showed entering the user in the video.
When you run the command manually does it run through?
Jake,
I just got back onto the replication issues. As a shop of one person, I
have to put out whatever fires blaze the highest at the time.
I did check your video and you *do* show putting in *root* as the user
when entering the crontab entry.
What I've done to attempt to resolve this is to delete all of the
archive files, put the command back into /etc/crontab, then let it run.
Since it takes so long to run (a couple of hours) I have taken the
command back out of /etc/crontab until it finishes. I'll then put it
back in to run every 10 minutes.
Why it mattered to unison that I ran it as root from the command line,
and why running it as root from crontab I do not understand.
Thanks,
Scott