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
In reply to Execution KSH Script from Perl by rheaton
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |