Re: vim syntax highlighting does not work in screen

2006-08-20 Thread Eric Wood
aladdin wrote: Hi, all. My vim syntax highlighting does not work in SCREEN. The problem occurs under RedHat9, vim 6.1.320, SCREEN 4.00.02, remote login with putty. I have another Debian Sarge Linux under which vim and SCREEN work well together. I checked the screenrc file but cannot find a

Re: Empty screen with split (C-a S)

2006-08-20 Thread Brian Mathis
To get to the newly split screen, use Ctrl-A TAB.  Then, you can select which screen you want to display in there using any of the normal screen window control commands.  If you want a new screen, you'll need to make one using Ctrl-A C as usual for a new screen. [EMAIL PROTECTED] wrote: Wh

vim syntax highlighting does not work in screen

2006-08-20 Thread aladdin
Hi, all. My vim syntax highlighting does not work in SCREEN. The problem occurs under RedHat9, vim 6.1.320, SCREEN 4.00.02, remote login with putty. I have another Debian Sarge Linux under which vim and SCREEN work well together. I checked the screenrc file but cannot find anything help.

Empty screen with split (C-a S)

2006-08-20 Thread [EMAIL PROTECTED]
When I create a split screen with 'C-a S', the terminal splits fine, but there is nothing in the new window, no prompt, nothing.  C-a a shows one (original) screen.I'm using Suse 10 Linux on a BenQ r55 with KDE.  The terminal I'm using is a kde konsole.  I always used to use splitvt, (seemlessly), 

Re: Garbled text when switching windows

2006-08-20 Thread Laurent Wandrebeck
Hi, I've hit the problem too, especially when using ncurses linked programs. It looks like the solution is to export TERM=xterm before lunching screen, at least when running linux, I don't own a mac. xterm-color seems to put in quite a mess. Hope that helps. Please CC me on replies, as I'm not su

Passing Environment Variables In A Config File

2006-08-20 Thread Tom Purl
I looked around for a while to find a solution to this and could not. Any help at all would be greatly appreciated. I use screen on Linux to access a large number of Unix servers. Some of the terminal applications that I use on these Unix servers don't recognize a TERM value of 'screen', so I usu

avoiding warning message and delay in "macro"

2006-08-20 Thread Eric Smith
Hi I am using tabs in vim7 and have several files permanently opened on screen window called "data". I have bindings as per: bind r eval 'select data' 'stuff :tabn1^M' bind t eval 'select data' 'stuff :tabn2^M' This takes me from wherever I am in screen to the data window and then issues the :ex

avoiding warning message and delay in "macro"

2006-08-20 Thread Eric Smith
Hi I am using tabs in vim7 and have several files permanently opened on screen window called "data". I have bindings as per: bind r eval 'select data' 'stuff :tabn1^M' bind t eval 'select data' 'stuff :tabn2^M' This takes me from wherever I am in screen to the data window and then issues the :ex

Re: [unclassified] Can't send newline

2006-08-20 Thread Steve Scrimpshire
On Tue, 4 Jul 2006 21:44:48 -0400 Ariel Frailich <[EMAIL PROTECTED]> wrote: > Greetings! > > I'm trying to send a string to the modem from a script, using -S myscreen -X stuff "string%n">. The problem is that I can't get the > newline character across: it just echoes exactly as I send it. I've

putty screen size issue

2006-08-20 Thread Michael Grant
I'm having a redraw problem in putty at the bash prompt when I have lines longer than screen thinks the screen is wide. It's as if screen no longer knows how wide my screen really is. Yet vi and emacs both know to wrap at the edge of the window. It's only bash. I see that this or something sim

Re: Showing /dev/tty12 (or similar) syslog output in screen window

2006-08-20 Thread Jean Jordaan
> (never heard of multitail before, love it! that will allow me to cut > down the number of log monitoring windows... So far, 'tail -F log/*.log' works for me, for monitoring multiple files. And if something scrolls by too fast, C-z [ and search backwards in the screen buffer. -- jean _

Re: script to run screen with multiple telnet windows?

2006-08-20 Thread Rod Nussbaumer
Sam Cramer wrote: I'm trying to write a script to start a screen session with multiple telnet windows to a terminal server. The name of the terminal server varies, as does the number of windows, so this isn't something I can do by just adding some lines to my .screenrc. I tried creating a scree

Sending command to a detached screen

2006-08-20 Thread Kamal_K_Sharma
Hi We are using screen version "Screen version 4.00.02 (FAU) 5-Dec-03" and wants to issue a command to a detached screen. If my screen name is kamal, and I try the following command, it does not work screen -S kamal -X 'exec exit' exit is the command which I want to issue to kamal screen. Can

Creating a screen from a non-screened process

2006-08-20 Thread Jacob Fugal
Has it been proposed before to extend screen with the ability to pick up other processes into a new screen? Example: I work a lot over SSH connections. I'm not yet to the point where I use screen for everything (though I'm coming closer); I generally only start a process in a screen when I antic

Setting DISPLAY in all windows

2006-08-20 Thread Jean Jordaan
Hi all My terminal died. After reconnecting to screen, DISPLAY in all sessions is wrong, so X apps don't start properly. Instead of saying 'export DISPLAY=...' in each session, I'd like to set it for all of them at once. This is what I tried, but no joy: screen -p1 -X exec export TEST=42 scre

Adding processes to detached "daemon" screen session

2006-08-20 Thread Derek Giromini
Greetings-- After looking at various documentation and articles about screen as well as trying various combinations of options, I am unable to attach processes to a detaches "daemon" screen session. For example, I have a "screen-monitor" process that will run "screen -dm". It will subsequently r

screen swallowing 'kbo' sequence -- resolved

2006-08-20 Thread Marino Duregon
Hello, please disregard my previous message (screen 4.0.2 swallowing the 'kbo' sequence). Soliton, in the irc channel #screen on freenode.net pointed me in the right direction. There was a bindkey -d kb definition in my .screenrc which I was not aware of. Mea culpa. Marino __

Re: splitting window into regions

2006-08-20 Thread Eric Smith
> Not currently, though it's been discussed on this list in the past, and > there's at least one patch floating around to add the feature. > Its here http://www.nabble.com/Vertical-Split-Slowdown-t1379254.html#a370589 Warning: It might change your life. Tip, use an outer screen with a differen

Is this possible?

2006-08-20 Thread unterstanding . 3 . tryp
So I recently started using Screen within the Ratpoison window manager...and I'm curious: is there a way to redirect Screen's Activity message and bell message, by say somehow using a command when setting what they are, into ratpoison? The way to echo text in Ratpoison's message bar is the command

Re: ESC key slowness

2006-08-20 Thread Paul Ackersviller
On Wed, Apr 19, 2006 at 04:39:53PM -0400, judd wrote: > Around here, we run the Korn shell. The Korn shell requires ESC-ESC to do > command line completion - a very popular feature. You might try Esc-\ as an alternative, I suspect that would avoid screen waiting for an escape sequence that's neve

Fw: Using command line '-X' to send commands to multiuser session

2006-08-20 Thread Steve Scrimpshire
Begin forwarded message: Date: Wed, 12 Apr 2006 22:15:12 -0500 From: Steve Scrimpshire <[EMAIL PROTECTED]> To: screen-users@gnu.org Subject: Re: Using command line '-X' to send commands to multiuser session On Wed, 12 Apr 2006 18:58:37 -0700 Rod Nussbaumer <[EMAIL PROTECTED]> wrote: > Screen

Fw: Using command line '-X' to send commands to multiuser session

2006-08-20 Thread Steve Scrimpshire
Begin forwarded message: Date: Wed, 12 Apr 2006 22:15:12 -0500 From: Steve Scrimpshire <[EMAIL PROTECTED]> To: screen-users@gnu.org Subject: Re: Using command line '-X' to send commands to multiuser session On Wed, 12 Apr 2006 18:58:37 -0700 Rod Nussbaumer <[EMAIL PROTECTED]> wrote: > Screen

show time information with "screen -list" ?

2006-08-20 Thread roland
hello ! what about modifying screen a little bit and adding information to "screen -list" about the date/time when the screen was started ? that should make it easier to find/choose the "right" screen again (if you forgot to set a dedicated name) ok - we can find this out via ps/grep, too

Re: Using command line '-X' to send commands to multiuser session

2006-08-20 Thread Steve Scrimpshire
On Wed, 12 Apr 2006 18:58:37 -0700 Rod Nussbaumer <[EMAIL PROTECTED]> wrote: > Screen Gnurus: <> > Here is a simple example of what I mean... > > > $ screen -v > Screen version 4.00.02 (FAU) 5-Dec-03 > $ screen -S test01/ -list > There is a suitable screen on: > 21614.pts-88.edevel23p

screen on 256 color xterm

2006-08-20 Thread Dr. Johannes Zellner
Hello, how do I get 256 colors in screen running in an 256 enabled xterm? I tried to create a terminfo entry like this: screen-256color|screen on xterm with 256 colors, ccc, colors#256, pairs#32767, initc=\E]4;%p1%d;rgb\:%p2%{255}%*%{1000}%/%2.2X/%p3%{255}%*%{1000

Screen "view-only" client mode

2006-08-20 Thread Thomas Perl
Hello! I've looked through the man page of screen, searched the web and Google Groups to search for a similar function I need, but haven't found anything related to this, so I'm now posting this to the screen-users list to ask if this is possible with screen with the current version. I'm using S

General: Access restriction to a screen session

2006-08-20 Thread Steiner David
Hi, I’ve got a quick question where the proportion of time spend in the man page would be better suited for an answer by person. On a side note, I would appreciate if a book was written for screen (for advanced topics).   I’ve got multiple people logging into a system with the same user

attaching new process to existing screen

2006-08-20 Thread Ed Peschko
hey all, I had a question about new processes and screen - is it possible to start a process in another window/session and have it show up in the windowlist of an existing screen? Ie: I know that you can do something like: screen -d -m gdb and have gdb pop up in an entirely new scree

Put screen scrollback buffer in terminal

2006-08-20 Thread Jeroen Coumans
Hi, I'm using the following line in my .screenrc to use Terminal.app's scrollbackbuffer: termcapinfo xterm*|rxvt* 'ti@:te@' Which works perfectly. However, when I reattach to a screen session, the scrollback buffer of Terminal.app is empty, while screen's own scrollback buffer still has my h

reattaching split screen session patch

2006-08-20 Thread Nico Golde
Hi, does someone have a patch to enable screen to reattach split screen sessions? Regards Nico P.S: please cc me, I am not subscribed -- Nico Golde - JAB: [EMAIL PROTECTED] | GPG: 0x73647CFF http://www.ngolde.de | http://www.muttng.org | http://grml.org Forget about that mouse with 3/4/5 buttons

Problem installing screen on Solaris 8

2006-08-20 Thread Jason Brown
added the package from sunfreeware.com and getting the following when I try to start screen I get the following two errors:   ttyn: Permission denied  Sorry, could not find a PTY.      ideas?   thanks -- ---Jason Brown[EMAIL PROTECTED] ___ screen-use

How to execute Screen?

2006-08-20 Thread Peah P. Lim
Hi,     I have downloaded and installed screen in LINUX CentOS. I have unzip the file in the main directory. I would like to know how to execute the application. What command to use? Shall I login as SSH? Please advice. Thank you.     Kind regards,   Valyn Lim Peah Peah Network Over

delete screen scrollback buffer

2006-08-20 Thread morlix
Hello screen users, i want to delete my scrollback buffer on some screen windows because security. I open my gpg encrypted messages in a screen window with vi. After i close the message i can see the unencrypted message if i scroll up. Now the question is how to delete the scrollback buffer so tha

Access to scrollback buffer and setting env. vars

2006-08-20 Thread Gustav Broberg
Hi, I've got two screen related questions that I haven't been able to find the answers to. First of all, is there an easier way to get content from the scrollback buffer back to the command line than simply copy-pasting? For example say that I'd like to get the last row from the last command I'v

Re: How do I get a windowlist to STDOUT?

2006-08-20 Thread Jean Jordaan
> I have been digging around to find a nice way to output the > windowlist to STDOUT but have not seen an easy solution. I've been asking the same question here, but no luck so far. Closest was a patch by pclouds, look for "dump screen to html" in the list archives. -- Jean ___

Problem displaying 88 colors when running screen under rxvt-unicode (urxvt)

2006-08-20 Thread Serge Koksharov
Hi, I use rxvt-unicode (urxvt) v5.3 terminal which supports 88 colors . When I run color test 88colors2.pl (you can find it in XTerm source code tarball), color cubes looks correctly. But when I run screen v4.0.2 (of course compiled with 256 colors support) under urxvt, and launch this test aga

vertical split

2006-08-20 Thread bill
Here's a third patch for vertical splits. (The second was sent to a moderator, as it was over 10k, and I don't think it has made it to the list yet.) It doesn't handle the caption line well, and I want to focus on that before working on some of the other details. I implemented the resize functi

How do I get a windowlist to STDOUT?

2006-08-20 Thread Robert Blackwell
I have been digging around to find a nice way to output the windowlist to STDOUT but have not seen an easy solution. I would like to be able to do something like this screen -X windowlist > windows.txt The windowlist command shows the screen titles in the screen window. Am I missing something

screen-develop moderated?

2006-08-20 Thread bill
I posted a patch to screen-develop last night, and I got a reply from screen-devel-bounces stating that the "message awaits moderator approval" due to size restrictions. I'm not sure what was decided regarding which group to use, users or develop, so here it is again, compressed. Here's a much

Re: screen+putty setting window title

2006-08-20 Thread Fredrik Erlandsson
> The sequence is different inside screen. Instead, (for bash) do > > PROMPT_COMMAND='echo -ne "\033_hello1\033\\"' > > For something like .bashrc, it's best to test if you're inside a screen > session by checking the $TERM variable before setting the above > variable. > > -zeroguy > > I'm

Problem with starting up Screen

2006-08-20 Thread Yang, Daniel
I just installed screen on solaris 8 using a package version Screen version 4.00.02 (FAU) 5-Dec-03   I'm getting the following error when trying to start it up:   Ttyn:  Permission denied   Sorry, could not find PTY   Any help would be appreciated.   Thanks,   Dan ___

vbell delay

2006-08-20 Thread Johann Cairns
I am trying to disable the delay after a visual bell on my screen sessions.  I normally run 1 screen and connect to it via the -x command line argument from multiple xterm windows.When I do something to create a visual bell, like backspacing too far in gdb, I get the "Bell in window %" messa

scrolling a split screen

2006-08-20 Thread Robert Anderson
Is there any way to scroll back _within_ a split screen? If I use the xterm scroll mechanism it just scrolls back the whole thing, becaue obviously it doesn't "know about" the split screen. I'm looking for an emacs type behavior where the split "buffers" scroll independently. Thanks, Bob _

Re: dump screen to html

2006-08-20 Thread Jean Jordaan
Hi pclouds This looks interesting .. Any chance you could get screen to dump the windowlist? See: http://lists.gnu.org/archive/html/screen-users/2005-10/msg9.html http://lists.gnu.org/archive/html/screen-users/2005-10/msg00012.html Regards, -- Jean Jordaan http://www.upfrontsystems.co.za

Could not write /var/run/utmp: Interrupted system call

2006-08-20 Thread Jonathan Martin
Hey everyone. Has anyone ever seen this when starting screen, or detaching from screen: Could not write /var/run/utmp: Interrupted system call And when creating new windows: Could not write /var/run/utmp: No such process Utmp is one of those unix-y things I never bothered trying to

Funktion keys

2006-08-20 Thread Ronny Kornexl
Hello What is the right KEY Definition? screen -xr rtorrent -X stuff "for LEFT KEY (?)" screen -xr rtorrent -X stuff "for RIGHT KEY (?)" screen -xr rtorrent -X stuff "for UP KEY (?)" screen -xr rtorrent -X stuff "for DOWN KEY (?)" Regards Ronny ___

Funktion (Keys)

2006-08-20 Thread Ronny Kornexl
Hello I using screen with the bittorrent client, "rtorrent". Here the "KEYBOARD CONTROL"... http://libtorrent.rakshasa.no/wiki/RTorrentMan These keys function... screen -xr rtorrent -X stuff l screen -xr rtorrent -X stuff ' ' screen -xr rtorrent -X stuff a screen -xr rtorrent -X stuff s screen

Re: send the input to many ttys simultaneously

2006-08-20 Thread Jean Jordaan
> I want to input on a screen tty and send the input to another screen > ttys simultaneously. > Is it possible on the screen to do this? Screen is used to reach a terminal on computer X from computer Y, but the terminal stays on computer X. To do what you want, you need something like http://fr

Suspend jobs + screen

2006-08-20 Thread Steve Barnes
Hi list, Is there a way (or is it even possible), to suspend a process (ctrl-z), run screen and then fg the suspended job? When trying this with an active irssi session, I run screen after suspending and jobs shows nothing. Is there a way to do this or should I just add screen/screen -r to aut

Different output

2006-08-20 Thread Jan Steding
Hello NG, i use two different linux server with debian on it. one with kernel 2.4.20 and the other with 2.6.12. with the 2.6.12 kernel i get the right output from ps with screen: [EMAIL PROTECTED]:$ ps ax|grep -i screen 7203 ?Ss 0:00 SCREEN -A -m -d -S g99be ./ 31242 pts/2R+

How can I execute a command in a detached screen?

2006-08-20 Thread Jim C.
I do the following: [EMAIL PROTECTED] bin]$ screen -dm [EMAIL PROTECTED] bin]$ screen -ls There is a screen on: 22539..mirage (Detached) 1 Socket in /tmp/uscreens/S-sdn20. [EMAIL PROTECTED] bin]$ screen -S 22539..mirage -X exec "/bin/ls -l" [EMAIL PROTECTED] bin]$ ...but when I re-atta

Q about how 2 execute a cmd in a screen

2006-08-20 Thread Jim C.
I've be wrestling with this for some time now. How can I execute a command in a detached screen without re-attaching it? Jim C. ___ screen-users mailing list screen-users@gnu.org http://lists.gnu.org/mailman/listinfo/screen-users

Script for taking full advantage of screen in X environment

2006-08-20 Thread Torsten Scheck
Dear fellow screen users: My working environment is X with lots of xterms (in my case urxvt) and I'm quite happy with this. But there have been many occasions, when I wished that I were in a screen session, but I wasn't. To solve this problem I use a script, which creates a new window in a shared

merging multiple screens into one?

2006-08-20 Thread andre m.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi first of all, thanks for screen. it is truly awesome and jeff covey is right when saying 'screen has long won my vote for "Most Undercelebrated Unix Tool"' [1] now maybe i have a suggestion for a feature in future versions of screen: i got a box w

mutt in screen with utf-8

2006-08-20 Thread Bas van Gils
Hi all, I've been using screen for years and it has always worked great for me. Wonderful tool. Recently I switched my terminal to rxvt-unicode and that's when I noticed some weird behavior in mutt, my mailer: - when I start a new urxvt and fire up mutt then the line-drawing characters work g

remove escape sequences from capture log

2006-08-20 Thread Mark Norman
I am obviously looking in all the wrong places. After using screen's log function to capture some relevant data, I am left with an output file that includes all of the escape sequences generated during the capture, as determined with xxd. Is there a filter command that will remove all of the cont

screen not translating backspace correctly

2006-08-20 Thread John Meacham
xterms terminfo entry for kbs on my system says ^? which is fine, that is what xterm emits and what stty is set to. screens terminfo entry for kbs is ^H, which is also fine and is what stty is set to. however, screen does not seem to be translating the 'host' kbs of ^? to the screen kbs of ^H like

Re: Setting DISPLAY on the screen shell

2006-08-20 Thread Paul Dunne
JCA, Well, it's clunky, but... could you not alter whatever init file is run on the remote host, so that it writes the information you need to a file or environment variable before you start screen on that host? I'm presuming you're not using screen as the login shell on the remote host. Assumin

Re: quitting irssi crashed screen with an interesting error :-)

2006-08-20 Thread Jochen Schulz
Angelina Carlton: > > I used the normal irssi /quit command and it left me with an odd colored > pattern on my urxvt terminal and an error message about dungeons :-) Unfortunately I cannot help you, but the funny error message comes from the 'nethack' setting. It's documented in 'man screen'. Onc

Re: Interesting things found in ncurses that affect screen

2006-08-20 Thread Thomas Dickey
On Mon, 18 Jul 2005, Michael Schroeder wrote: On Mon, Jul 18, 2005 at 07:37:58AM -0400, Thomas Dickey wrote: On Mon, 18 Jul 2005, Michael Schroeder wrote: On Mon, Jul 18, 2005 at 06:25:24AM -0400, Thomas Dickey wrote: The code's doing what it is intended: when screen is running in UTF-8 mode

Re: Interesting things found in ncurses that affect screen

2006-08-20 Thread Thomas Dickey
On Mon, 18 Jul 2005, Michael Schroeder wrote: On Mon, Jul 18, 2005 at 06:25:24AM -0400, Thomas Dickey wrote: The code's doing what it is intended: when screen is running in UTF-8 mode, it ignores the termcap information, only accepts the UTF-8 encoding for line-drawing characters. No, that's

-X and multiuser mode

2006-08-20 Thread Rod Nussbaumer
sunbeam:bomr[/usr1/isac/tools] > screen -v Screen version 3.09.15 (FAU) 13-Mar-03 This is running on Sun Solaris 8 We use screen primarily for it's multiuser capability, which allows us to share access to perpetual telnet sessions that are opened to a number of single-purpose black-box devi

bug reading of .screenrc with -dm

2006-08-20 Thread Peder Stray
Why is it that screens i start with -dm ignores a lot of (not all it seems) entries i have in my .screenrc? it does set the 'caption string' i specify, but ignores 'windowlist title' and 'source' it seems. Thats at least the tings i can see is not done. starting screen without -dm does all th

patch [update]

2006-08-20 Thread Nico Golde
Hi, ok the first patch wasn't secure. Here is a second version. Regards Nico -- Nico Golde - [EMAIL PROTECTED] | GPG: 1024D/73647CFF http://www.ngolde.de | http://www.muttng.org | http://grml.org VIM has two modes - the one in which it beeps and the one in which it doesn't -- encrypted mail pre

not able to use ~ as $HOME

2006-08-20 Thread Nico Golde
Hi, screen isn't able to handle ~/ if you want to load a configuration file via source in the command line. I hate this because it is short and good :) However, I attached a patch which fixes this. Please include it. Regards Nico -- Nico Golde - [EMAIL PROTECTED] | GPG: 1024D/73647CFF http://www.

Re: garbled text with centericq and screen

2006-08-20 Thread John H.
I still am getting garbled text w/putty and screen/centericq. --- "John H." <[EMAIL PROTECTED]> wrote: > Hi, I responded to this with the following, is there > any other suggestions??? > > > Reconstructed via infocmp from file: > /usr/share/terminfo/s/screen > screen|VT 100/ANSI X3.64 virtual

strange races in screen -D -m `tty`?

2006-08-20 Thread Tomas Juknevicius
Hello dear screen gurus ;-), I'm fairly new to using the screen, but already starting to like it. Recently I've been trying to solve one problem, and encountered strange situation while using screen. Here is my task: I have 2 machines; lets call them local & remote. local is in the LAN which is N

Re: Interesting things found in ncurses that affect screen

2006-08-20 Thread Thomas Dickey
On Mon, 18 Jul 2005, Juergen Weigert wrote: That is odd. We should ask upstream ncurses when and why this code appeared. Upstream is still Thomas Dickey, right? Thomas, are you following this? now I am (I'm not on screen-users). This workaround is in ncurses 5.4, first appeared shortly after

Re: Interesting things found in ncurses that affect screen

2006-08-20 Thread Thomas Dickey
On Mon, 18 Jul 2005, Michael Schroeder wrote: On Sun, Jul 17, 2005 at 09:19:38PM +0200, Nikolai Weibull wrote: ... Don't ask me, I'm not aware of any problems screen has with UTF-8. Maybe Thomas Dickey, the ncurses author, can shed some light on this. The code's doing what it is intended: wh

Re: Reestablishing ssh connections via screen

2006-08-20 Thread John Davidorff Pell
On 22 Jun 2005, at 10:58, JCA wrote: JCA wrote: I have a Linux notebook that connects to a Linux server by ssh. The notebook can be suspended to disk at any time, while ssh sessions to the server are still running. How can screen be used so that, when the notebook is brought back from its

Re: Reestablishing ssh connections via screen

2006-08-20 Thread Andrew Schulman
> I have a Linux notebook that connects to a Linux server by ssh. The > notebook can be suspended to disk at any time, while ssh sessions to > the server are still running. How can screen be used so that, when the > notebook is brought back from its dormant state, whatever ssh sessions > it had a

Re: screen windows in KDE Konsole Tabs

2006-08-20 Thread Peder Stray
On Wed, 15 Jun 2005, Buddy Burden wrote: I can do a "ps -ef|grep PID" and then subtract 2 (one for the grep and one for the parent PID). But that isn't a good solution in my opinion. Nope, not very efficient, I wouldn't say. How about this? ps -eo ppid= | grep PID | wc -l Don't forg