BalleClorin
August 18th, 2009, 07:20 AM
I'm trying to execute a perl script through a bash script.
The construct is basicly:
for every file of type $1 in current directory
script.pl filename
The bash script and the perl script both work separately, but the perl script seems to be unable to locate the environmental PATH variable when called from within the bash script.
Of course I could edit the perlscript and use absolute paths to the external tools, but that wouldn'tbe very elegant would it...
The construct is basicly:
for every file of type $1 in current directory
script.pl filename
The bash script and the perl script both work separately, but the perl script seems to be unable to locate the environmental PATH variable when called from within the bash script.
Of course I could edit the perlscript and use absolute paths to the external tools, but that wouldn'tbe very elegant would it...