It >SHOULD< do so... but do be aware that just because a script
executes from the command line does NOT mean that it will execute
when run as root from a cron job....  you may have to do anything
from starting an explicit shell to defining some (normally defined)
environment variables for that script, etc. Root runs with a very
minimal set of environment variables, and cron restricts it
even slightly more....

Of course, I'm a guy who's paranoid about running jobs as root
without being very explicit.  You might want to write the script
to echo EVERYTHING it does to the screen (you'll get it as an email
message from cron with it in it) so that you can see every result.
You may find a bug that does not exist in a command line execution.

Bill Ward
-----Original Message-----
From: Erik [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 11, 1999 9:10 PM
To: Redhat List
Cc: recipient.list.not.shown
Subject: cron


Hi,

I have a quick question. If I put a file in my /etc/cron.daily
directory, it will be executed daily?  For example, I put a file called
ntp.cron in my /etc/cron.daily directory and made it it was executable. 
Provided the script I wrote in it work (it does I tested it), will that
be enough to make it work?

TIA,

erik


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to