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

Re: recognizing an xterm running only bash from the CLI



 Mike McClain writes:
> If I can learn how to determine which /dev/pts/? is running only bash
> and not mc or something else then I can write toX() to just work.

ps ax | grep [b]ash | grep -o 'pts...'
-- 
John Hasler 
john@sugarbit.com
Elmwood, WI USA


Reply to: