Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Search Forums:



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-09-2012
Registered User
 

Join Date: Apr 2008
Posts: 18
Thanks: 2
Thanked 0 Times in 0 Posts
Multiple Crontabs

I have a crontab job in my sun solaris server and basically i have a unix script in 3 different parts

1 part will do an auto ftp from a server

2 part will have some grep and awk related commands and generate certain files

3 part the files that are generated above will be auto ftpied again to the source server.

when i put above 3 parts in crontab using && also the 2nd and 3rd part is not executing properly and even if merge all the above 3 tasks in one crontab also it is not executing.

what is the best way to execute and automate the scripts.
Sponsored Links
    #2  
Old 02-09-2012
Registered User
 

Join Date: Jan 2009
Location: Pune ,India
Posts: 130
Thanks: 12
Thanked 22 Times in 22 Posts
One simple thing would be create a new script and from inside the new script invoke the script 1,script 2 and script 3.
Add the new script to crontab entry.

Or
in crontab try with below format
* * * * * script1;script2;script3
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Control multiple program instances - open multiple files problem hakermania Programming 3 02-06-2011 12:06 PM
crontabs entry not working DILEEP410 Shell Programming and Scripting 2 11-03-2009 09:01 PM
Monitoring Crontabs r00t4u UNIX for Advanced & Expert Users 4 08-24-2009 03:25 AM
extract multiple cloumns from multiple files; skip rows and include filenames; awk manishabh Shell Programming and Scripting 4 08-18-2009 10:55 PM
Jobs scheduled in crontabs are not running after a migration to oracle 9i alexcol UNIX for Advanced & Expert Users 4 03-27-2007 10:35 PM



All times are GMT -4. The time now is 04:54 AM.