i am writing a perl script that calls sequence of linux commands in which the output of first command to be used in the second command i tried writing the code as following
$JobId = system (qq(svr_submit_job" -- user "$xxxx" --passwd ""xxxxx - +-fasta "$fasta")); print "$JobID\n"; chomp($JobId); system (qq("svr_status_job" $username" "$Password" "$JobID"));
plese help me to write code how it takes the output of command in to second command
my output for the above code
815485
0status for job 0: error (error message :Job not found)
In reply to pERL CALLING lINUX COMMANDS SEQUENTIALLY by MVRS
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |