The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help using perl commandline for XML matching x96riley3 Shell Programming and Scripting 2 03-28-2009 11:55 AM
using mutiple "nohup" to execute multiple commands. aster007 Shell Programming and Scripting 2 03-06-2009 12:35 PM
HTML5 will incorporate high definition extensions iBot UNIX and Linux RSS News 0 04-01-2008 07:10 AM
Documentation and books on Autosys Job Control Tool from Autosys gram77 UNIX for Advanced & Expert Users 0 11-10-2007 06:24 AM
script to go to a different dir to run a commandline prompt in that dir ann_124 Shell Programming and Scripting 2 11-29-2004 02:25 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 06-12-2009
waavman waavman is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 9
How to incorporate mutiple commands in Autosys commandline on UNIX

Hi,

I am having a problem running multiple commands in a autosys command line. For example I would like to run a perl script first and then add sleep command after that in the same autosys job like below


insert_job: xxxxxxxxx
command: `perlscript.pl ; sleep 180`

Perlscript.pl is a perl script. To make this question as simple as possible, the perl script just prints a simple line "Hello World" as shown below


#!/usr/bin/perl
printf ("Hello WORLD\n");
exit(0);


When I run the above autosys job, it appears to work and sleeps for 180 seconds / 3 minutes. But after 3 minutes it fails with the error in the error log reading "/bin/sh: line 0: exec: Hello: not found"
Why does this happen. Is there any other way of having mutiple commands in a Autosys commanline ?



Your help is greatly appreciated.

thanks
waavman
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:05 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0