rheaton has asked for the wisdom of the Perl Monks concerning the following question:
I can execute the following KSH from cmd line in unix.
gen_multi_seq.ksh "FAMP.001.DAT" '"FAMP.001.DAT"' "001" '"001"' "AMP_D +FR"
However when I try and execute the same thing in Perl using the following it fails. $grph_gen_multi_seq contains the path to and the gen_multi_seq.ksh value. This has been verified and is found correctly.
$return_val = system($grph_gen_multi_seq, "$data_source_contents[2]", +"\'\"$data_source_contents[2]\"\'", "$seq_num", "\'\"$seq_num\"\'", " +$data_source_contents[1]");
I have also tried...without success
$return_val = system($grph_gen_multi_seq, "\"$data_source_contents[2]\ +"", "\'\"$data_source_contents[2]\"\'", "\"$seq_num\"", "\'\"$seq_num +\"\'", "\"$data_source_contents[1]\"");
AND
$return_val = system($grph_gen_multi_seq, "\"".$data_source_contents[2 +]."\"", "\'\"$data_source_contents[2]\"\'", "\"".$seq_num."\"", "\'\" +$seq_num\"\'", ""\".$data_source_contents[1]."\"");
What am I doing wrong? OH, I also verified that the data in the read arrays is correct. Logically one of these should work. Thanks for your help!!
rheaton
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Execution KSH Script from Perl
by gaal (Parson) on Jan 18, 2007 at 20:26 UTC | |
by johngg (Canon) on Jan 18, 2007 at 20:54 UTC | |
|
Re: Execution KSH Script from Perl
by jhourcle (Prior) on Jan 18, 2007 at 20:18 UTC | |
by rheaton (Acolyte) on Jan 18, 2007 at 20:21 UTC | |
by gaal (Parson) on Jan 18, 2007 at 20:29 UTC | |
by jhourcle (Prior) on Jan 19, 2007 at 15:05 UTC | |
|
Re: Execution KSH Script from Perl
by graff (Chancellor) on Jan 19, 2007 at 04:01 UTC |