From owner-freebsd-questions Wed Nov 29 12:36:35 2000 Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-10.mail.nl.demon.net [194.159.73.20]) by hub.freebsd.org (Postfix) with ESMTP id 30FFC37B401 for ; Wed, 29 Nov 2000 12:36:32 -0800 (PST) Received: from [212.238.77.116] (helo=buffy.raggedclown) by post.mail.nl.demon.net with smtp (Exim 3.14 #2) id 141Dxt-0004P2-00; Wed, 29 Nov 2000 20:36:30 +0000 Received: from localhost (localhost [[UNIX: localhost]]) by buffy.raggedclown (8.10.2/8.10.2) id eATKLU307271; Wed, 29 Nov 2000 21:21:30 +0100 From: Cliff Sarginson Date: Wed, 29 Nov 2000 21:21:29 +0100 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="US-ASCII" Cc: Drew Tomlinson , "FreeBSD Questions (E-mail)" To: Peter , Rick Hamell References: In-Reply-To: Subject: Re: How to Resume a Suspended Process MIME-Version: 1.0 Message-Id: <00112921212900.06399@buffy> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wednesday 29 November 2000 19:46, Peter wrote: > > Use ps to fine the pid, then fg with the pid to bring it back. > > I have tried this on RH 6.1 box, have yet to try on FBSD but, can I do > that to processes moving them from on telnet session into another one? > > telnet session 1=ctrl+z > telnet session 2=ps |grep proggie |fg pid This command makes absolutely no sense I am afraid to say :( fg +`ps | grep proggie` will work (fg seems to ignore the rest of the ps stuff tagged along the same line .. lol) > it does not bring the process up on that session. > > How about from a tty to an xterm in X? You can bring "jobs" back to the foreground by various methods examples.. fg %2 bring job 2 to foreground fg imples "fg %1" fg +xxx bring job with PID xxx to foreground the "jobs" command will tell you what jobs you have and their job id the "jobs -l" will tell you the process id as well If you have a job with process id 1234 you can foreground it by fg +1234 jobs are associated with the terminal group, I dont think you can start a job on one terminal/console/telnet session (doubtless someone will correct me on this if I am wrong !) and bring it back on another, and I am not entirely sure how much sense that would make anyway. Read the section on jobs control in the bash(1) manual page, and the stuff in "bash builtins" for more info. Cliff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message