Is it possible to have more than one Cron in shell script?


 
Thread Tools Search this Thread
Operating Systems AIX Is it possible to have more than one Cron in shell script?
# 1  
Old 12-14-2007
Is it possible to have more than one Cron in shell script?

Hi,

can we have more than one cron in the shell script? If so pls let me know on what basis it is running. Whether on OS scheduling or the time scheduled in the cron file.Pls answer this query.

Many Thanks
# 2  
Old 12-16-2007
cron is the scheduler. The runs the jobs by referring the table crontab. Or you can schedule the jobs via "at"
We can have only one cron demon running on the server. However we can use other schedulers on the same server like cosbatch, autosys etc
# 3  
Old 12-16-2007
Each user gets a crontab, each crontab can have a number of entries.

Each entry has a date/time specification and a command to run.

Only one cron process is required, it spawns child processes and runs the commands as required.
# 4  
Old 12-17-2007
Thanks Kundunni..hence it is depends on...

Quote:
Originally Posted by Kundunni
cron is the scheduler. The runs the jobs by referring the table crontab. Or you can schedule the jobs via "at"
We can have only one cron demon running on the server. However we can use other schedulers on the same server like cosbatch, autosys etc
Hi Kundunni,

Thanks for you reply. Hence it is only one cron containing many crontabs on the server and it is not related to the operating system.
# 5  
Old 12-17-2007
Thanks Porter

Quote:
Originally Posted by porter
Each user gets a crontab, each crontab can have a number of entries.

Each entry has a date/time specification and a command to run.

Only one cron process is required, it spawns child processes and runs the commands as required.
Hi Porter,

Thanks for your reply.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Script runs in shell but not cron

We run some menu driven software that has the ability to batch menu paths and generate reports quickly. Normally you run a batch like: $ BATCH BATCHNAME The batch program then prompts you for the date you want the report run for. I got some help from some folks on IRC to do the following: BATCH... (2 Replies)
Discussion started by: herot
2 Replies

2. UNIX for Dummies Questions & Answers

cron shell script question

Hi all, hopefully someone out there can give me some tips on how to resolve this I have a simple shell script who -u > /tmp/userlog one of the line stored in userlog when executing shell script manually: jim123 pts/24 2012-03-30 13:02 00:56 4131 (xya.dsfgds.com) one of the... (4 Replies)
Discussion started by: Linux_Novice
4 Replies

3. Shell Programming and Scripting

Bash Shell Script and Cron

How can I tell a script to only execute if the other scripts exits successfully? So "script A" executes and if it executes successfully (0),then "script B" will run or else "script A "executes and it exits unsucessfully (1) then "script B" will read return code (1) and will not execute ... (3 Replies)
Discussion started by: metallica1973
3 Replies

4. Shell Programming and Scripting

Shell script for cron url

Hi guys, I have a serious issue with running cron command. My host not supported format below mentioned, just the URL.) http://www.mysite/example.php ( I’m affraid a bit, the host do not going to support the sh as well…anyway) Somehow I need to „wrap” this command, to able to call cron: ... (1 Reply)
Discussion started by: vazzeg
1 Replies

5. Shell Programming and Scripting

Shell script and Cron

Hi there, I have a script that pulls in a weather feed via FTP then writes the output to a file. This script is run everyday at 3pm by cron. Heres the shell script: #!/bin/sh HOST='ftp.weatheronline.co.uk' USER='my username' PASSWD='my password'... (2 Replies)
Discussion started by: mpk_3
2 Replies

6. Shell Programming and Scripting

Shell script not working in cron

Hello, I know little about shell scripting and creating a script, and worked fine in the command line. But not work in the cron. Below you could see the script #!/bin/sh LOGFILE=/home/transfield/mou/test.log # Find yesterday Date and copy files TODAY=$(date --date= +%F) YESTERDAY=$(date... (4 Replies)
Discussion started by: malikp
4 Replies

7. Shell Programming and Scripting

Cron job shell script..

Hey Guys, i was trying out a shell script which has to remove a file for every 90 mins. this is the code i came up with . $ crontab -e file1 file1 contains 30 1 * * * * rm -r /folder1/folder2/somefile.txt Now i need the cron to run for every 90 mins. the problem with this is... (8 Replies)
Discussion started by: Irishboy24
8 Replies

8. Shell Programming and Scripting

Cron execution of shell script

Hi Guys, Unable to run this script from the cron,although the same executes perfectly from the command line.Please help. #!/bin/sh #### aprintd alarm creation files ##### file=`date +%m%d%Y` pid=$$ echo "$pid" /u01/app/netboss/bin/aprintd/aprintd > $file & childpid=$!... (3 Replies)
Discussion started by: ashish.sharma
3 Replies

9. Shell Programming and Scripting

Shell script & cron

Hi everybody! I'm struggling against a script that won' t work right in a cron job this is my script: cat serverlist | while read arg do if then echo "$arg" ping -c 4 $arg >> /dev/null if then ... (3 Replies)
Discussion started by: deppy82
3 Replies

10. HP-UX

executing shell script from the cron

This isn't the usual problem that a shell script runs from the command line and not the cron. It's a little different. Among other things, the shell scrip executes my .profile to set a bunch of variables. It then does an env to ensure that it ran OK. There are echos in the shell script and... (2 Replies)
Discussion started by: abNORMal
2 Replies
Login or Register to Ask a Question