If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > telnet question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-22-06, 06:50
fla5do fla5do is offline
Registered User
 
Join Date: Oct 2003
Location: Germany
Posts: 138
telnet question

My OS is SCO Open Server. Every user opens a telnetsession over IP and get a Shell. I can see with the ps -ef command the sh on (example) ttyp0. How can I find out from which IP-Adress this sh with PID xyz is opened.

Many thanks

Greetings from germany

Peter
__________________
Greetings from germany
Peter F.
Reply With Quote
  #2 (permalink)  
Old 03-22-06, 17:19
LKBrwn_DBA LKBrwn_DBA is offline
Registered User
 
Join Date: Jun 2003
Location: West Palm Beach, FL
Posts: 2,456
Cool


Don't know SCO, but this may work:
Code:
who|grep 'ttyp0'

__________________
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
Reply With Quote
  #3 (permalink)  
Old 03-23-06, 12:08
fla5do fla5do is offline
Registered User
 
Join Date: Oct 2003
Location: Germany
Posts: 138
Thumbs up

Quote:
Originally Posted by LKBrwn_DBA

Don't know SCO, but this may work:
Code:
who|grep 'ttyp0'


thaks for your posting. A good tip. I read the manuel about the who command. "who -x" shows that what I want.

Greetings from Germany
Peter
__________________
Greetings from germany
Peter F.
Reply With Quote
  #4 (permalink)  
Old 03-23-06, 12:09
fla5do fla5do is offline
Registered User
 
Join Date: Oct 2003
Location: Germany
Posts: 138
Thumbs up t

Quote:
Originally Posted by LKBrwn_DBA

Don't know SCO, but this may work:
Code:
who|grep 'ttyp0'


thaks for your posting. A good tip. I read the manuel about the who command. "who -x" shows that what I want.

Greetings from Germany
Peter
__________________
Greetings from germany
Peter F.
Reply With Quote
  #5 (permalink)  
Old 03-23-06, 13:53
LKBrwn_DBA LKBrwn_DBA is offline
Registered User
 
Join Date: Jun 2003
Location: West Palm Beach, FL
Posts: 2,456
Cool


Good luck!
__________________
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
Reply With Quote
  #6 (permalink)  
Old 03-27-06, 06:26
upsingh upsingh is offline
Registered User
 
Join Date: Aug 2004
Posts: 10
try last command

last|grep "ttynumber"
Reply With Quote
  #7 (permalink)  
Old 03-27-06, 06:27
upsingh upsingh is offline
Registered User
 
Join Date: Aug 2004
Posts: 10
last command

try last command

last|grep "ttynumber"
Reply With Quote
  #8 (permalink)  
Old 03-27-06, 10:02
LKBrwn_DBA LKBrwn_DBA is offline
Registered User
 
Join Date: Jun 2003
Location: West Palm Beach, FL
Posts: 2,456
Cool


last command gives history, who gives current logins.
__________________
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
Reply With Quote
  #9 (permalink)  
Old 04-03-06, 08:35
prashant_add prashant_add is offline
Registered User
 
Join Date: Mar 2006
Posts: 25
i think u can use

who -R|grep ttyp0

regards
prashant.

Quote:
Originally Posted by fla5do
My OS is SCO Open Server. Every user opens a telnetsession over IP and get a Shell. I can see with the ps -ef command the sh on (example) ttyp0. How can I find out from which IP-Adress this sh with PID xyz is opened.

Many thanks

Greetings from germany

Peter
Reply With Quote
  #10 (permalink)  
Old 04-03-06, 15:21
fla5do fla5do is offline
Registered User
 
Join Date: Oct 2003
Location: Germany
Posts: 138
Quote:
Originally Posted by prashant_add
i think u can use

who -R|grep ttyp0

regards
prashant.
your command isnīt supported by SCO-UNIX.
"who -x" shows that what I want.
Thanks for your posting

Peter.F
__________________
Greetings from germany
Peter F.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On