LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-01-2004, 01:44 PM   #1
Luskacik
LQ Newbie
 
Registered: Jan 2004
Posts: 6

Rep: Reputation: 0
how to determine which pts do I actually use


Hi everybody,
please advice me how do I determine which pts do I actually use?
Situation:
I have open few or several puttys from the same IP to the same account and when I run any script i only want redirect output to one of them.
I tried:
# w
# whoami
# who
# ps
but there is no info which i need.

Palo.
 
Old 10-01-2004, 02:57 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
tty

is the command you want.
 
Old 10-05-2004, 03:39 AM   #3
Luskacik
LQ Newbie
 
Registered: Jan 2004
Posts: 6

Original Poster
Rep: Reputation: 0
thanks
(now I see it in # w)
USER TTY LOGIN@ IDLE JCPU PCPU WHAT
luskacik pts/0 09:32 4:55 0.05s 0.02s sshd: luskacik [priv]
luskacik pts/1 09:35 0.00s 0.04s 0.01s sshd: luskacik [priv]
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
pts/0, pts/1 devices ?? nadine.mauch Linux - General 1 10-07-2004 12:00 PM
which pts do I use Luskacik Linux - Newbie 0 09-30-2004 11:07 AM
how to determine if /dev/pts works (i cannot run xterm) stpg Linux - General 2 08-11-2004 10:33 AM
pts with aterm WanglessOlasov Linux - Newbie 0 08-01-2003 12:46 AM
what is pts/# Cichlid Linux - General 2 12-28-2002 12:18 AM


All times are GMT -5. The time now is 08:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration