Re: [CentOS] xinetd custom service - perl - remote address

2020-05-28 Thread Gary Stainburn
On Thursday 28 May 2020 18:12:55 Tony Mountifield wrote: > In article <202005281646.34790.gary.stainb...@ringways.co.uk>, > Works for me. Here are my details: > Thanks for this Tony. This is exactly what I had expected to happen. I subsitiuted your server for mine and got exactly the same resul

Re: [CentOS] xinetd custom service - perl - remote address

2020-05-28 Thread Tony Mountifield
In article <202005281646.34790.gary.stainb...@ringways.co.uk>, Gary Stainburn wrote: > Hi all, > > I can't believe that I can't find the answer to this one. I have a perl > script which is called by xinetd. > > I want that perl script to be able to detect the remote IP address of the > caller

Re: [CentOS] xinetd custom service - perl - remote address

2020-05-28 Thread Kenneth Porter
On 5/28/2020 8:55 AM, Jonathan Billings wrote: I don't believe that xinetd tells the underlying processes anything about IPs, since xinetd handles the network connection and as far as the process is concerned, it's just filehandles. Isn't the filehandle just a socket? So can't you use Perl's so

Re: [CentOS] xinetd custom service - perl - remote address

2020-05-28 Thread Simon Matter via CentOS
> Hi all, > > I can't believe that I can't find the answer to this one. I have a perl > script which is called by xinetd. > > I want that perl script to be able to detect the remote IP address of the > caller. > > I presumed that it would be an environment variable but I could be wrong. > I've fou

Re: [CentOS] xinetd custom service - perl - remote address

2020-05-28 Thread Jonathan Billings
On Thu, May 28, 2020 at 04:46:34PM +0100, Gary Stainburn wrote: > > Hi all, > > I can't believe that I can't find the answer to this one. I have a > perl script which is called by xinetd. > > I want that perl script to be able to detect the remote IP address > of the caller. > > I presumed th