jeastman has asked for the wisdom of the Perl Monks concerning the following question:
Incidentally, I call script one by typing ..... ./loader.pl monthly RUN_CAP_LOAD and it successfully receives the CLI parameters I send it. When the execution gets to the second script I get a hang and a message saying ... "(offline mode: enter name=value pairs on standard input)" and the script(s) hang. Why is the second script NOT picking up the parameters it gets passed from the system line in the first script. Thanks in advance for your help.#!/bin/perl use CGI; $query = new CGI; @keywords = $query->keywords; $timeframe = &trim(uc(@keywords[0])); $sp_action = &trim(uc(@keywords[1])); use LWP::Simple; $rundir = '/opt/oracle/CSMDB/LoadFiles'; $exe_dir = $rundir . "/Monthly/current_load"; $actual_cmd = "files_present.pl"; system($exe_dir . "/" .$actual_cmd . " " . $exe_dir . " " . $sp_action + ); Second *.pl script called by script above: #!/bin/perl use CGI; $query = new CGI; @keywords = $query->keywords; $exe_dir = @keywords[0]; $time_frame = @keywords[1];
Retitled by holli from 'I'm sure this is really simple ... just not for me'.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: passing arguments between scripts
by Zaxo (Archbishop) on Jun 08, 2005 at 22:07 UTC | |
|
Re: passing arguments between scripts
by rlucas (Scribe) on Jun 08, 2005 at 22:42 UTC | |
|
Re: passing arguments between scripts
by GrandFather (Saint) on Jun 08, 2005 at 23:28 UTC | |
by jeastman (Initiate) on Jun 09, 2005 at 15:02 UTC | |
by GrandFather (Saint) on Jun 09, 2005 at 21:10 UTC | |
|
Re: passing arguments between scripts
by tlm (Prior) on Jun 08, 2005 at 22:05 UTC |