Re: SOLVED: inetd vs console calling a script

2012-10-12 Thread Gary Stainburn
On Thursday 11 October 2012 20:53:08 Andy Bach wrote: > On Thu, Oct 11, 2012 at 4:36 AM, Gary Stainburn > > wrote: > >> Is there a quick and easy way to detect which method called it? > > > > my $xinetd=(defined $ENV{REMOTE_HOST}); > > MIght be interesting to see what else is set in the environmen

Re: SOLVED: inetd vs console calling a script

2012-10-11 Thread Andy Bach
On Thu, Oct 11, 2012 at 4:36 AM, Gary Stainburn wrote: >> Is there a quick and easy way to detect which method called it? > > my $xinetd=(defined $ENV{REMOTE_HOST}); MIght be interesting to see what else is set in the environment, adding something like: warn("$_ -> $ENV{$_}\n") foreach keys %ENV;