[Techtalk] Newbie & crontab

Carla Schroder carla at bratgrrl.com
Tue Nov 16 04:39:52 EST 2004


On Monday 15 November 2004 4:50 am, Raena Lea-Shannon wrote:
> Hi,
> 
> I am trying to create a simple crontab to record from my TV card. I am 
> struggling with getting cron to work. I have searched lots and am getting 
> more confused. I am running SuSE 8.2. I have learnt so far that all its 
> system cron deamon things are run set up in /etc/cron.blahs. 
> 

Another thought: to maintain your sanity more better, put your command in a 
script, then have cron call the script. Then to create the crontab, do this 
as the user than runs the script:

$ crontab -e  0 20 * * 1  <scriptname>

This runs the script every Monday at 8pm. The crontab will be put 
in /var/spool/cron/crontabs.

These are the crontab fields:

minute (0-59), 
hour (0-23), 
day of the month (1-31), 
month of the year (1-12), 
day of the week (0-6 with 0=Sunday). 

By scripting the command, it's easier to tweak and fine-tune it without having 
to edit the crontab every time.

Check your local man crontab for any distribution oddities. And SuSE has great 
help resources on suse.com if you don't have the nice printed manual.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Carla Schroder
this message brought to you
by Libranet 2.8 and Kmail
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


More information about the Techtalk mailing list