in reply to File Access for child process

I have to agree with almut. If the code works fine entered manually, but not in a script, it's often a difference in the PATH environment variable.

You can check this explicitly. Type:
echo $PATH
in your BASH shell and also add the line:

print $ENV{"PATH"}, "\n";
in your script just before the backticks.

Replies are listed 'Best First'.
Re^2: File Access for child process
by crunchi (Initiate) on Dec 22, 2007 at 04:13 UTC
    Thanks guys. I probably should have worked that one out myself. But I had been working on this baby for about 19 hours straight. I think I fried my brain...