03-17-2009
I currently use vi, so I do this-
set editor=VI
crontab -e
Then once you're in there, add your line then save and exit out.
First column=minutes, 2nd=hour, 3rd=day, 4th=month, 5th=weekday, from 6th to end of line=command to execute. * in one of first 5 fields means any/every value, i.e., every minute, hour, day, etc.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I am a total newbie to all things Unix. I've worked out I need to set up something that will allow me to automatically backup a DB for me, the DB is for a foum system I run.
Now, I've only found out I need to use telnet for this, and worked out hwo to log into telnet today. From here... (4 Replies)
Discussion started by: eludlow
4 Replies
2. UNIX for Advanced & Expert Users
I need to monitor my cron jobs with another unix machine since occasionally the cron will go down on the main server but there are no errors. Can anyone help with a script to write to use the cron on the back up machine to monitor the main server?
I am using SCO and the cron jobs have been... (3 Replies)
Discussion started by: rmarral
3 Replies
3. Solaris
I'm trying to run cron jobs to start any inhibited processes after a system reboot.
I can schedule th cron, but i'm confused as to how to incorporated the reboot, since reboot is scheduled at different times, once every month.
How can I write this to start every 15 min after after a reboot
... (2 Replies)
Discussion started by: Remi
2 Replies
4. Solaris
how to Put a cron entry which should be same script triggered on every Saturday and 1st of every month at 01.00 GMT.
0 2 1 * 6 --( At 2.00 GMT every sat & on 1st of every month)
the above syntax is correct?
Thanks (1 Reply)
Discussion started by: kurva
1 Replies
5. UNIX for Dummies Questions & Answers
Hi,
We have a group of hosts using which the cron jobs are submitted...
Few days ago i had submitted a cron job in of these hosts, but unfortunately forgot the host name :(
Can anyone please help me out in finding this host name from which the cron s submitting the job, i dont want the... (2 Replies)
Discussion started by: bhavanisree
2 Replies
6. Linux
Hi,
I am a Linux administrator (newbie) in my company. The distro being used in the servers here is Centos 5.3
Just need to know, as a Linux administrator is it better for me to use /etc/crontab to set my cron jobs. I do not want to use the crontab -e to schedule my cron jobs.
That means... (1 Reply)
Discussion started by: anaigini45
1 Replies
7. Shell Programming and Scripting
Hi Frenz,
How do we get a cron job running in background to foreground ? (3 Replies)
Discussion started by: mkalase
3 Replies
8. Shell Programming and Scripting
Hi,
please help on this am trying to exec the below mentioned cron jobs
but its getting failed fro the past two days
###but when am trying to execte the cron by the times
23,29 18 * * * /export/home/inrvgo/thelak/China.sh
its getting exec properly
please help on this
#... (8 Replies)
Discussion started by: thelakbe
8 Replies
9. Solaris
There are two jobs in Solaris , Cron and at jobs..
I know how to disable or enable cron jobs.
How can I enable at jobs and disable it.
Kindly help.
Rj (2 Replies)
Discussion started by: jegaraman
2 Replies
10. Red Hat
I'm running cronjobs on a redhat 5.X. Cronjobs are getting failed frequently so how to find the root cause (2 Replies)
Discussion started by: karthik9358
2 Replies
LEARN ABOUT SUSE
hylafax-shutdown
HYLAFAX-SHUTDOWN(5F) HYLAFAX-SHUTDOWN(5F)
NAME
etc/shutdown - server shutdown control file
DESCRIPTION
If the file etc/shutdown is present it describes when a HylaFAX server is to be shutdown and may contain a descriptive message to return to
clients explaining the reason for the shutdown. This file is used by the hfaxd(8C) program.
The file has the following format:
<year> <month> <day> <hour> <minute> <deny> <disconnect>
<shutdown message text>
The first line defines the date and time the server should be shutdown and the time preceding at which unprivileged clients should be
denied service or disconnected; these fields are described in more detail below. Any lines that follow the first are taken as the text of
a message to return to clients when notifying them of a scheduled shutdown or when denying them service.
<year> The decimal year; e.g. 1996.
<month> The decimal month; e.g. 10 for October.
<day> The decimal day of the month in the range [1..31].
<hour> The decimal hour since midnight; in the range [0..23].
<minute> The decimal minute after the hour; in the range [0..59].
<deny> The time prior to the shutdown time at which to deny service to unprivileged clients. This value is specified as decimal number
in the form HHMM; e.g. 130 for 1 hour and 30 minutes.
<disconnect>
Time time prior to the shutdown time at which to disconnect unprivileged clients that are logged in to the server. This value is
specified as a decimal number in the form HHMM.
NOTES
This file is typically created using the ``SHUT'' command supported by hfaxd(8C).
SEE ALSO
hfaxd(8C), hylafax-server(5F)
January 18, 1996 HYLAFAX-SHUTDOWN(5F)