Cron Jobs


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Cron Jobs
# 1  
Old 01-18-2005
Cron Jobs

Where can someone find info on Cron Jobs? Very new to UNIX and the PC I inherited looks to have several of them. Looks like they are some kind of background program that runs automatically at specified times. Would like to delete some of them and know more about them.
# 2  
Old 01-18-2005
Search this site and google.com for starters. A search for "cron" on google.com gives 3 *million* results. Searching for "cron tutorial" gives 194,000 results.

man cron and man crontab are also must-reads.

Quote:
Originally Posted by man cron
cron executes commands at specified dates and times. Regularly
scheduled commands can be specified according to instructions placed
in crontab files. Users can submit their own crontab files with a
crontab command (see crontab(1)). Users can submit commands that are
to be executed only once with an at or batch command.
Cheers
ZB
# 3  
Old 01-18-2005
Thanks Bob, I did search google and got overwhelmed by the number of hits.
# 4  
Old 01-18-2005
There seem to be a couple of introductions at these links (note: i haven't checked these out...)

http://www.unixgeeks.org/security/ne...ix/cron-1.html
http://www.linuxhelp.net/guides/cron/
http://www.linux.com/article.pl?sid=04/04/04/1544250
http://weather.ou.edu/~billston/crontab/
http://www.linuxforums.org/forum/ptopic4440.html
http://www.adminschoice.com/docs/crontab.htm

Also; take a look at the following article from our FAQ section.

That and the man pages should get you going Smilie

Cheers
ZB

Last edited by zazzybob; 01-18-2005 at 12:35 PM..
# 5  
Old 01-18-2005
THX Bob. That has got me rolling. I entered "crontab -l" and see some of the actions, however not the ones I am getting errors on e-mail. Are there more than one crontab file, and if so how would I find it. I know the path and file name of the errored e-mail messages.
# 6  
Old 01-18-2005
Try as su or root
crontab -l root to see roots crontab, which is most likely the backup processes. If, you decide to delete those, you can by issuing;
crontab -d root
# 7  
Old 01-19-2005
If you change to the crontab directory it will give you a list of al the crontab user files.
Type in cd /usr/spool/cron/crontabs
then ls -l in the directory, it should show you all the files with the names being the user.
You will then need to type
crontab -u filename -l
This will then display all the jobs due to run under each user.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Cron jobs

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

2. Solaris

Cron jobs and at jobs

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

3. Shell Programming and Scripting

cron jobs

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

4. Shell Programming and Scripting

Help with cron jobs

Hi Frenz, How do we get a cron job running in background to foreground ? (3 Replies)
Discussion started by: mkalase
3 Replies

5. Linux

Cron jobs

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

6. UNIX for Dummies Questions & Answers

cron jobs

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

7. Solaris

cron jobs

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

8. Solaris

Cron Jobs

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

9. UNIX for Advanced & Expert Users

cron jobs

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

10. UNIX for Dummies Questions & Answers

CRON Jobs

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
Login or Register to Ask a Question