LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Identifying telnet connections?

[ILUG] Identifying telnet connections?

Paul Jakma Paul.Jakma at Digital.com
Thu Jun 3 10:19:43 IST 1999


ok.. i misunderstood, sorry.

maybe something along the lines of:

export DISPLAY=`last -a -n 1 $USER | awk '/mydomain.ie/ { print $10 }'`

would do the trick.

it works for me, the reason for using the domain name is cause i can't see
how to get the username into the awk pattern, eg:

awk '/$USER/ { print $10}' doesn't work cause the awk command string isn't
parsed by bash.

and awk '/ENVIRON["USER"] {print $10 }' doesn't do it either.

any awk/perl hackers out there?

hth,

paul.

> ----------
> From: 	Tony_Melia at Dell.com[SMTP:Tony_Melia at Dell.com]
> Sent: 	03 June 1999 09:27
> To: 	Paul Jakma
> Subject: 	RE: [ILUG] Identifying telnet connections?
> 
> windows....crt...also I tried standard windows nT telnet.
> I just tried linux>linux telner (both RH6) and it says unable to open
> display %s.  so I presume it expects the %s paramater to the the
> variable....???
> 




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell