crontab configuration in FreeBSd -6.2
Hi all I need to configure a crontab for a FreeBSD -6.2 box . To test it , as root user I entered a line into the /etc/crontab by using easyeditor as follows 50 21 * * * root/root/testcron and I saved this.(cat /root/testcron is touch /root/desktop/Myfile) and I tried to do as root user this # /etc/rc.d/cron restart got O/P as Stopping cron. Starting cron. Then I tried to give #crontab -lBut Output is as this don# crontab -l crontab: no crontab for root why this message is it working fine ? ya not how can I list crontab -l (the cronjobs for root) Pls provide your suggestions any way the Myfile is created by crontab , butwhy the message no cronjob for root ? _ Millions of Matrimonial Profiles @ Shaadi.com. Join Now! http://www.shaadi.com/ptnr.php?ptnr=mhottag ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: crontab configuration in FreeBSd -6.2
On Wednesday 27 June 2007, dhaneshk k wrote: Hi all I need to configure a crontab for a FreeBSD -6.2 box . To test it , as root user I entered a line into the /etc/crontab by using easyeditor as follows 50 21 * * * root/root/testcron and I saved this.(cat /root/testcron is touch /root/desktop/Myfile) and I tried to do as root user this # /etc/rc.d/cron restart got O/P as Stopping cron. Starting cron. Then I tried to give #crontab -lBut Output is as this don# crontab -l crontab: no crontab for root why this message is it working fine ? ya not how can I list crontab -l (the cronjobs for root) Pls provide your suggestions any way the Myfile is created by crontab , butwhy the message no cronjob for root ? Because that's a different crontab. Each user (including root) has their own crontab. What you have just edited is the system wide crontab. The message stating root's crontab for freebsd in /etc/crontab is kind of confusing. HTH, Pieter de Goeje ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: crontab configuration in FreeBSd -6.2
See the FAQ entry titled Why do I keep getting messages like “root: not found” after editing my crontab file? http://be-well.ilk.org/FreeBSD/doc/en_US.ISO8859-1/books/faq/admin.html#ROOT-NOT-FOUND-CRON-ERRORS -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]