You may use cron, unix task scheduler to execute predetermine jobs at timely intervals.
crontab -l
will list your current active cron table entries.
crontab -e
will get you directly into edit mode
A crontab input has six fields:
minute (0-59)
hour (0-23)
day of month (1-31)
month of year (1-12)
day of week (0-6, 0 is Sunday)
Command
Example:
0 18 1 * 0 date | mail user
will execute at 6 p.m. on the first of each month as well as at 6 p.m. on every Sunday.
Typically your cammand file will be a script, containing the set of instructions. Command file should specified with full path in crontab specification.
ok..i did that, can you make sense of this please ??
# crontab -l
# @(#) root 69.1 98/03/10
#
# Copyright (C) 1989-1998 The Santa Cruz Operation, Inc.
# All Rights Reserved.
# The information in this file is provided for the exclusive use of
# the licensees of The Santa Cruz Operation, Inc. Such users have the
# right to use, modify, and incorporate this code into other products
# for purposes authorized by the license agreement provided they include
# this notice and the associated copyright notice with any such product.
# The information in this file is provided "AS IS" without warranty.
#
17 5 * * 0 /etc/cleanup > /dev/null
0 2 * * 0,4 /usr/lib/cron/logchecker
0 1 * * * /usr/bin/calendar -
3 3 * * * /usr/lib/cleantmp > /dev/null
1 3 * * * /etc/setclk -rd1800 > /dev/null 2>&1
#5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A
00 23 * * 1-5 /etc/cleanspool
00 02 * * 1,2,3,4,5 /usr/lib/edge/bin/edge.action ws
munis.springs.local:schent/simple_job wsmunis.springs.local:action/s
imple_job
00 03 * * 1,2,3,4,5 /usr/local/bin/uvscan --summary
/ | lp -dpurch
#
The list seems to be crontab entries that belong to the superuser (root) of your unix box. It's alright. Do not alter these entries unless you know exactly what you are doing!
You may append a line in this file if you wish, for your activity of cleaning up of /u1/live/spool/livetemp* or you may login as other authorised user and create/add crontab entry of your own apart from a root user.
Regards,
Shriyan "Minds, like parachutes, work only when they are open."
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.