# [EMAIL PROTECTED] / 2002-11-21 22:11:55 +0000: > I want to run a cron job as a user on my system. Once the job has > completed I need root privileges to power the system down. I don't > mind if the script has to run as a root cron job, but running the > processing as a user will prevent against filling a partition.
1) joe's crontab: # do the grunt work touch /var/run/shutdown root's crontab: [ -f /var/run/shutdown ] && \ rm -f /var/run/shutdown && \ /sbin/shutdown -h now 2) joe's crontab: # do the grunt work /usr/local/bin/sudo /sbin/shutdown -h now -- If you cc me or remove the list(s) completely I'll most likely ignore your message. see http://www.eyrie.org./~eagle/faqs/questions.html To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message