Hi, small correction:
exec does not find the file although it should:
~/tmp$ ./x
bash: ./x: /blabla: bad interpreter: No such file or directory
~/tmp$ perl -e 'exec("x") || die($!)'
No such file or directory at -e line 1.
~/tmp$ perl -e 'exec("~/tmp/x") || die($!)'
sh: /home/svenXY/tmp/x: /blabla: bad interpreter: No such file or dire
+ctory
but
$ perl -e 'exec("pwd") || die($!)'
/home/svenXY/tmp
So now you know why the messages are different, but I'm confused as to why exec does not find file x...
Regards,
svenXY |