Ok i make an file called crontab in my home dir and i added that line and it doesnt seem it sees that file or something as it didnt do anthing is there something else i did to do to get it to see this file in m home dir BOB On Thu, 13 Dec 2001, Anders Johansson wrote:
On Thursday 13 December 2001 08.12, Bob B wrote:
thanks just one other ? i looked at the crontab file and it has the user root running the daily etc ones do i still put root or the user that the file belongs to as it is in m user dir the file also on most of the lines inthat file there is an rm -f do i need this also! BOB
No, no. /etc/crontab is the system cron control file. It performs system maintenance jobs like rotating logs, cleaning up /tmp and other such things. You would put your job in your user's personal crontab, which you edit with crontab -e. If you don't know or like vi, you can choose your own favourite editor by doing something like this
export EDITOR=/opt/kde2/bin/kate
replace /opt/kde2/bin/kate with your favourite editor, then start crontab -e *from the same shell*. Note that other shells already started, or if you start a new shell, will *not* get the EDITOR variable. Only the shell where you did the export.
In the crontab you'd put a simple line
*/5 * * * * get-mail
*/5 means every fifth minute the other asterisks means respectively every hour, every day in the month, every month, every day in the week. And get-mail should be replaced by whatever you type to check mail now.
You don't need to put a user, because this is your personal crontab.
//Anders
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com