Friday, August 06, 2010

Event Scheduler - Cron Tables (Crontab) in Suse-openSUSE

Cron is the Unix/Linux event scheduler.

Features:
Execute on background: Cron is the daemon to execute scheduled commands. It's actions are determined by a Cron Table or "crontab".

Who Can Access Cron Tables: There are two files these are /etc/cron.allow and /etc/cron.deny.


A Look at a Cron Table Entry:

* * * * * cp /home/myname/source/* /home/myname/destination (execute every minutes)

The Timing String:

Minutes: 0 -> 59
Hours: 0 -> 23
Days of month:1 -> 31
Months: 1 -> 12 or jan -> dec
Days of week: 0 -> 7 or sun -> sun

15 6 * * * mpg123 /home/myname/Music/"When She's Gone.mp3" (play mp3 at 6.15 a.m every days)

Editing the Cron Table: crontab -e
Viewing and Purging Cron Jobs: crontab -l
Remove all your cron tasks you issue this command: crontab -r

References:
http://www.linuxtotal.com.mx/index.php?cont=info_admon_006
http://www.nagios.org/documentation

No comments:

PostgreSQL json fields

select name->'es_PE',* from product_template where name->>'es_PE' like '%MEGACI%'   References: [1] https:/...