Date: Fri, 09 May 2003 15:24:22 +0200 From: Paul Everlund <tdv94ped@cs.umu.se> To: crnholio <crnholio@gmx.ch> Cc: freebsd-questions@freebsd.org Subject: Re: crontab question Message-ID: <3EBBAC06.80502@cs.umu.se> References: <20030509145159.2d620aad.crnholio@gmx.ch>
next in thread | previous in thread | raw e-mail | index | archive | help
crnholio wrote: > hi list, > > i have a simple question concerning crontab. i would like to execute > a program every day at 0:45 o'clock and kill it at 6:00. this is the > entry i made in /etc/crontab: > > 45 0 * * * crnholio program > 0 6 * * * crnholio killall -9 program > > well, it doesn't work and i guess i haven't understood how to enter > the exact time into the file. could somebody please enlighten me? :) > > thanks in advance, > crnholio Hi! You should not put entries in /etc/crontab. Instead use 'crontab -l' to list your crontab entries. If logged in as root, it will show root's entries. If logged in as crnholio, it will show crnholio's en- tries. Using 'crontab -e' you can edit your own entries with an editor. Use 'setenv EDITOR "your favourite editor"' to change from vi to "your favourite editor". Put the following in your crontab: 45 0 * * * program 0 6 * * * killall -9 program I'm not sure this will help, but it's the correct way to do it. :-) Best regards, Paul
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3EBBAC06.80502>