screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script knowing if in screen / screen window correponding to tty


From: Shawn McMahon
Subject: Re: Script knowing if in screen / screen window correponding to tty
Date: Fri, 9 Jul 2004 13:26:36 -0400
User-agent: Mutt/1.5.4i

On Fri, Jul 09, 2004 at 12:16:43PM -0400, Buddy Burden said:
> 
> 2) Is there any way to know what screen window corresponds to a given 
> tty?  I generally have so many screen windows open that it's easy for me 

ps -ef | grep farfergnugan

That will likely return nothing but the ps process, and on that line
will be the tty/pts/whatever.

The rest is an exercise for your awk fu.


-- 
Shawn McMahon      | Let's set the record straight. There is no argument
EIV Consulting     | over the choice between peace and war, but there is
UNIX and Linux     | only one guaranteed way you can have peace - and you
http://www.eiv.com | can have it in the next second - surrender. - Reagan

Attachment: pgp2nWFSXIbpx.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]