Link to home
Start Free TrialLog in
Avatar of rgbcof
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?
Avatar of ozo
ozo
Flag of United States of America image

What did you try, and what were the results that lead to the conclusion that it does not work?
ASKER CERTIFIED SOLUTION
Avatar of ziceva
ziceva
Flag of Romania image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
What are $? and $! values after the system() failure?
Avatar of rgbcof
rgbcof

ASKER

Works great.