Displaying 3 results from an estimated 3 matches for "xinetd_lang".
2020 May 28
5
xinetd custom service - perl - remote address
...ariable but I could be wrong. I've found reference to the ENV and PASSENV arguments for xinetd.conf but no examples, and no indication of what auguments to use.
In my script I have the following code:
foreach (keys %ENV) { print "$_=$ENV{$_}\n";}
but the only line I get back is:
XINETD_LANG=en_US
2020 May 28
0
xinetd custom service - perl - remote address
...to the ENV and PASSENV arguments for
> xinetd.conf but no examples, and no indication of what auguments to
> use.
>
> In my script I have the following code:
>
> foreach (keys %ENV) { print "$_=$ENV{$_}\n";}
>
>
> but the only line I get back is:
>
> XINETD_LANG=en_US
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.
--
Jonathan Billings <billings at negate.org>
2020 May 28
0
xinetd custom service - perl - remote address
...rence to the ENV and PASSENV
> arguments for xinetd.conf but no examples, and no indication of what auguments to use.
>
> In my script I have the following code:
>
> foreach (keys %ENV) { print "$_=$ENV{$_}\n";}
>
>
> but the only line I get back is:
>
> XINETD_LANG=en_US
Works for me. Here are my details:
1. /usr/local/bin/args:
#!/usr/bin/perl
$i=1;
while(defined($_ = shift)) {
printf "ARGV[%d]=\"%s\"\n",$i++,$_;
}
foreach $env (keys %ENV) {
printf "ENV{%s}=\"%s\"\n",$env,$ENV{$env};
}
2. /etc/xine...