Home » Infrastructure » Unix » Cron()
Cron() [message #97451] Tue, 14 May 2002 04:03 Go to next message
K. Balasubramanian
Messages: 10
Registered: April 2002
Junior Member
Anyone can help me in detail about cron() command, and with a example how to make it use wit a example

Thanks

Regards

K. Bala
Re: Cron() [message #97452 is a reply to message #97451] Tue, 14 May 2002 07:37 Go to previous message
Grant
Messages: 578
Registered: January 2002
Senior Member
$ <cyber> /export/home/oracle> cat oracle_cron
# -----------------------------------------------------------------------------
#
# crontab oracle_cron
#
# -----------------------------------------------------------------------------
# syntax: minute hour monthday month weekday command
#
# weekday: 0 sun, 1 mon , 2 tue, 3 wed, 4 thu, 5 fri, 6 sat
# -----------------------------------------------------------------------------
#
00 * * * * date >> $HOME/.sh_history
00 18 * * * $HOME/exports/exp_db_all /dev/null 2>&1
00 19 * * * $HOME/move_logs /dev/null 2>&1
00 20 * * * $HOME/clean_old /dev/null 2>&1
00 * * * * $HOME/dbup_mess
00 * * * * $HOME/check_alert /dev/null 2>&1
#
# -----------------------------------------------------------------------------
$ <cyber> /export/home/oracle> crontab oracle_cron
$ <cyber> /export/home/oracle> crontab -l
# -----------------------------------------------------------------------------
#
# crontab oracle_cron
#
# -----------------------------------------------------------------------------
# syntax: minute hour monthday month weekday command
#
# weekday: 0 sun, 1 mon , 2 tue, 3 wed, 4 thu, 5 fri, 6 sat
# -----------------------------------------------------------------------------
#
00 * * * * date >> $HOME/.sh_history
00 18 * * * $HOME/exports/exp_db_all /dev/null 2>&1
00 19 * * * $HOME/move_logs /dev/null 2>&1
00 20 * * * $HOME/clean_old /dev/null 2>&1
00 * * * * $HOME/dbup_mess
00 * * * * $HOME/check_alert /dev/null 2>&1
#
# -----------------------------------------------------------------------------
Previous Topic: Calling stored procedures from unix scripts
Next Topic: Re: shared memory
Goto Forum:
  


Current Time: Fri Mar 29 06:30:32 CDT 2024