On Tue, Feb 19, 2002 at 01:06:07PM -0800, Dale Southard wrote:
> "Eduardo J. Gargiulo" <[EMAIL PROTECTED]> 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/ $!=$;=$_+(++$_);($:,$~,$/,$^,$*,$@)=$!=~ # [EMAIL PROTECTED] /.(.)...(.)(.)....(.)..(.)..(.)/;`$^$~$/$: $^$*$@$~ $_>&$;` #Perl Monger
msg05872/pgp00000.pgp
Description: PGP signature

