On Wednesday, Sep 10, 2003, at 07:52 US/Pacific, [EMAIL PROTECTED] wrote:
[..]
[..]The point is if I comment the line 'use IO::Socket;' both programs work fine. If I use this statement - 'server.pl' fails to work with PID.
the is a big difference between 'server.pl' and '/usr/sites/test/vcgi/server.pl' !
One way to solve this is to have your start.pl
a. chdir '/usr/sites/test/vcgi' b. exec './server.pl'
or you could try
a. $ENV{PATH} = '/usr/sites/test/vcgi' . ':' . $ENV{PATH};
and prepend you special place where the executables are to be found.
In essence with only 'server.pl' the shell is going to look in all of the PATH elements for a piece of code that is so named and execute it.
Other suggestions
a. there are many simple mini-web-servers out there that you may want to download and look at. One of them is <http://www.webmin.com/> which is in perl
b. you might want to use the 'plx' extension, so that everyone knows that 'server.plx' is intended to be a perl executable, and not an old style 'perl library'.
ciao drieux
---
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]