How do I get the client's IP address?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of John Hester
Sent: Tuesday, May 01, 2007 4:00 PM
To: [email protected]
Subject: RE: [U2] Who Am I ? wIntegrate


> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Brutzman, Bill
> Sent: Tuesday, May 01, 2007 9:41 AM
> To: '[email protected]'
> Subject: RE: [U2] Who Am I ? wIntegrate
> 
> The following helps a lot...  How can it be cranked into UniBasic?
> 
> --Bill
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Ron Sharcott
> Sent: Monday, April 30, 2007 5:56 PM
> To: '[email protected]'
> Subject: RE: [U2] Who Am I ? wIntegrate
> 
> 
> I think this is what you're looking for.
> 
[snip]
> 
> ISINT=`tty | grep -c /dev/pts`
> if [ "${ISINT}j" = "1j" ]
>   then
>       echo "Terminal session"
>   else
>       echo "From wIntegrate
> fi

@TTY in BASIC will return the same value as "tty" at the OS level, at
least in UV. So something like "IF INDEX(@TTY,'/dev/pts',1) THEN" would
be the BASIC equivalent.

-John
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to