Hi All,

I am using ProcessBuilder in my java code to execute a perl script. The perl script sets up a server using the following code:

$server = IO::Socket::INET->new( Proto => 'tcp',
LocalPort => $PORT,
Listen => SOMAXCONN,
Reuse => 1);
die "Can't setup server\n" unless $server;

I get "Cannot setup server" message error message. The perl script runs fine and sets up a server successfully when run from the terminal. However when ProcessBuilder runs this script I get "Cannot setup server" error message. Before running the java code, I assured that the port the perl script uses is not in use.

Is it that I cannot do this with ProcessBuilder?

Can anyone please suggest a remedy/alternative to do this