rgbcof
asked on
perl, how to make a system call and pass parameter
$exitval = system "scripts/myscript.pl"; #this works
$exitval = system "scripts/patch_fdcs.pl $MYDIR"; #this does not work
It has to be a system call and not backticks. So how do I send parameter?
$exitval = system "scripts/patch_fdcs.pl $MYDIR"; #this does not work
It has to be a system call and not backticks. So how do I send parameter?
What did you try, and what were the results that lead to the conclusion that it does not work?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What are $? and $! values after the system() failure?
ASKER
Works great.