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. |
tty
is the command you want. |
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. |