:: Re: [DNG] ID which /dev/pts/? runni…
トップ ページ
このメッセージを削除
このメッセージに返信
著者: aitor
日付:  
To: dng
題目: Re: [DNG] ID which /dev/pts/? running just bash?
Hi Mike,

On 12/2/24 2:04, Mike McClain wrote:

>      Unfortunately '$ ps | grep xterm' shows '?' for the tty and
> "'$ ps | grep 'pst.*xterm'" returns nada.

>
>      If anyone can tell me how from a tty to know which pts is the open
> xterm I'd be most grateful.


I suggest you the following command:

$ ps --no-headers --format tty $(pgrep xterm)

HTH,

Aitor.