LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to determine which pts do I actually use (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-determine-which-pts-do-i-actually-use-237583/)

Luskacik 10-01-2004 12:44 PM

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.

btmiller 10-01-2004 01:57 PM

tty

is the command you want.

Luskacik 10-05-2004 02:39 AM

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]


All times are GMT -5. The time now is 04:04 PM.