> I have cron installed and it works fine. However, I need to run a backup
> script as a user since I mount a novell network acount with the same
> username and save my data. So I tried to set up a cron job as a user. 
> I created a file called allow in /var/spool/cron which contained 
> only my username. I edited my crontab file using the command crontab -e
> and I restarted the cron daemon just in case , but the thing didn't work.
What do you mean "didn't work".  Do you mean the script or program was not
called or the script or program did not do anything useful?

You can tell if something was run by making it say something, anything.  This
is because cron will mail you anything that is sent out STDOUT or STDERR.
So if you have a script, add the line
  echo "Hello, World!"
to it somewhere, perhaps near the top, to see if your script is being run
at all.

To check that the crontab has been entered in, try crontab -l as the user.

You might also want to run the script or program from the command line, to
see if that is working how you think it should be.

  - Craig




--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .

Reply via email to