On Tue, Feb 19, 2002 at 01:06:07PM -0800, Dale Southard wrote: > "Eduardo J. Gargiulo" <ejg@linux2.net.ar> writes: > > > Hi all. > > > > Is there any way to obtain the IP address of a ssh client and use it on > > a shell script? I want to put a crontab like > > > > ssh server script > > > > but I need the IP address i'm connecting from in the shell script and > > the address is assigned dynamically. > > echo $SSH_CLIENT | awk '{print $1}' Or even set $SSH_CLIENT; echo $1 -- #!perl # Life ain't fair, but root passwords help. # Eric Veldhuyzen http://terra.nu/ $!=$;=$_+(++$_);($:,$~,$/,$^,$*,$@)=$!=~ # eric@terra.nu /.(.)...(.)(.)....(.)..(.)..(.)/;`$^$~$/$: $^$*$@$~ $_>&$;` #Perl Monger
Attachment:
pgpNHS08vZYGi.pgp
Description: PGP signature