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'.
In reply to passing arguments between scripts by jeastman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |