http://www.perlmonks.org?node_id=1008382


in reply to Cannot launch perl packer binary from inetd

Welcome fergal1,

This isn't really a Perl problem! When you launch a script from the command line in *nix, the environmental variables have been set up via your login. When you launch a script from 'inetd' you must ensure that required environment is set up for the script to work.

This would be the same problem with any language (C, C++, etc.). What you could do to find the problem is in your test script open a file and dump your %ENV with a foreach loop. Move that file to a backup name and then call the script from 'inetd' and then compare the two files (can use 'diff' under *nix). It could be different users, protection problem, etc.

Good Luck!

"Well done is better than well said." - Benjamin Franklin