I have tried that as well. The KSH is responding differently when it is called from the perl script like that and when it is run from the cmd line. Thanks for the thought though.
| [reply] |
| [reply] |
It's likely then that you have more than one problem with your script, as the quoting one is blatant. However, you said you've verified the path and the values in the arguments, and I can't think of anything else that it might be, so I'd ask that you check again, using the following methods:
First, make sure that the command runs from your script, by using backticks, so you can capture any messages:
my $output = `gen_multi_seq.ksh "FAMP.001.DAT" '"FAMP.001.DAT"' "001" '"001"' "AMP_DFR" &2>1`;
If it's a problem with pathing, this should hopefully give you a clue.
Next, check to make sure that the values that the command you're generating is correct:
warn <<EOF;
system($grph_gen_multi_seq, "$data_source_contents[2]", "\'\"$data_sou
+rce_contents[2]\"\'", "$seq_num", "\'\"$seq_num\"\'", "$data_source_c
+ontents[1]");
EOF;
If either of these two are the problem, and you correct them, I really do believe that the quoting issues with then be shown to be a problem, and you'll need to correct them as well. | [reply] [d/l] [select] |