by Void Main » Sat May 31, 2003 2:54 pm
I don't think you understand what "cron" does. "cron" runs irregardless of a user being logged in. You submit a job to cron to run a job at a specific recurring time/date under a specific userid, it makes no difference as to whether the user is logged in.
As far as synching the system time, only root can do that anyway and the system time is not user specific. You don't even need a script, you could just execute the command "ntpdate -b -s servername" in a root cron job so it runs once a day or so:
0 2 * * * /usr/sbin/ntpdate -b -s ntp.tuxfamily.net
would sync your time every day at 2:00am to ntp server ntp.tuxfamily.net.