cron(8) System Manager's Manual cron(8)Name
cron - clock daemon
The command executes commands at specified dates and times according to the instructions in the file Since never exits, it should only be
executed once. This is best done by running from the initialization process through the file
The file is examined by every minute.
FilesSee Alsocrontab(5), init(8)
Guide to System Environment Setup
Check Out this Related Man Page
CRON(8) System Manager's Manual CRON(8)NAME
cron - clock daemon
Cron executes commands at specified dates and times according to the instructions in the files /etc/crontab and /etc/crontab.local. None,
either one, or both of these files may be present. Since cron never exits, it should only be executed once. This is best done by running
cron from the initialization process through the file /etc/rc; see init(8).
The crontab files consist of lines of seven fields each. The fields are separated by spaces or tabs. The first five are integer patterns
o minute (0-59)
o hour (0-23)
o day of the month (1-31)
o month of the year (1-12)
o day of the week (1-7 with 1 = Monday)
Each of these patterns may contain:
o a number in the range above
o two numbers separated by a minus meaning a range inclusive
o a list of numbers separated by commas meaning any of the numbers
o an asterisk meaning all legal values
The sixth field is a user name: the command will be run with that user's uid and permissions. The seventh field consists of all the text
on a line following the sixth field, including spaces and tabs; this text is treated as a command which is executed by the Shell at the
specified times. A percent character (``%'') in this field is translated to a new-line character.
Both crontab files are checked by cron every minute, on the minute.
7th Edition October 23, 1996 CRON(8)
i am working on linux.
i have crontab problem
i wrote a small script and put it in a crontab .
but the script is not running..
i have given following way in crontab -e
02 06 * * * /bin/csh /home/vr_test.csh
but the above script is not running
please rectify my... (26 Replies)
I've a shell account with a shell provider(OS: FreeBSD 4.11-STABLE). I wanted to ftp a file from my home directory to my c drive on every sunday. I wanted to make this process automated. right now i do manually. Can someone help me pls?
Thanks (27 Replies)
Hi all, i am trying to reduce the file size of /var/adm/wtmp in my AIX servers and im using the method cp /dev/null /var/adm/wtmp to reduce it. I thought of automating it by including this command into crontab. Surprisingly, it doesn't work once i put into crontab, there is no error message thrown... (25 Replies)
I can edit crontab with command
BUT I don't know to edit crontab at Solaris
because I tried with command $crontab -e
I can't do that
Can you help me...?
Thanks for solution
srilinux (25 Replies)
I am finding a issue with crontab that whatever the changes I made in the crontab file on the previous day wont be getting replicated today.
I saved the editor properly.
What would be the reason behind this.
For Eg: 03 12 * * * /gdbuat4/backupscripts/dailyexp10g.sh replaced to ... (33 Replies)
I do have three scripts. Whcih inserts records into a table using sqlldr, creating some reprot files etc. The first script will call the second and then the second will call the third. When I run my first script from the shell prompt, all my operation are completed successfully. If I do... (23 Replies)
I ran an ssh command to run a script on a remote server
ssh -l <user> <servername> /path/to/script/scriptname
This works fine - and the script is executed correctly.
However - I put this command into a script, that I want to run from cron every hour, to execute the file on the remote... (31 Replies)
Every day i ftp tar.gz a file from the production server to a back up machine.. This task creates way to much traffic on the network at the end of the day and puts and undo load on the production machine during operation hours. i would like to create a script that would automatically fire off the... (36 Replies)
I've got my own domain, ftp etc.. I'm using cPanel and I want to download a file periodically, every say 24 hours.
I've used this command:
wget -t inf http : / / www . somesite . com / webcam.jpg
ftp : / / i @ MyDomain . net : Password @ ftp . MyDomain . net^no spaces... (24 Replies)
I wrote a script and set it as a cron job to automatically download the data from the website.
Here is the problem, when I run this script in terminal, it works well, while it can not download the files when I run it as a cron job, I feel so weird.
The script as follows:... (28 Replies)
I have a problem, I wonder if you can help me sort it out:
I have the following entry in the cron:
00 1,13 * * * /home/report/opn_amt_gestores_credito.ksh > opn_amt_gestores_credito.log
But the entry only runs at 01:07
I have stopped the cron deamon, and started, but it still... (39 Replies)
Consider the following PERL script,
my $userID = `whoami`;
print TMP "$userID";
Run on the command line it works no problem.
Run using crontab it doesn't work.
Where do I go to check errors from crontab?
I've read things... (25 Replies)
I have set several cron jobs. I recently added a new cron job that copies a file of last day from another server and is executed each day (for example at 04:00 am) but when I check next day the file hasn't been copied.
I'm working in GNU/Linux CentOS (2.6.32) system.
The files that I need to... (23 Replies)