From owner-freebsd-questions Wed Nov 29 19:18: 6 2000 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 9CD8637B400 for ; Wed, 29 Nov 2000 19:18:03 -0800 (PST) Received: (qmail 15647 invoked by uid 100); 30 Nov 2000 03:18:03 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14885.50923.235065.639125@guru.mired.org> Date: Wed, 29 Nov 2000 21:18:03 -0600 (CST) To: Gary , Peter Cc: questions@freebsd.org Subject: Re: How to Resume a Suspended Process In-Reply-To: <69513674@toto.iv> X-Mailer: VM 6.75 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Message: You should get a better mailer. Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Gary types: > >> Occasionally, I have accidentally hit cntrl-Z when trying to hit cntrl-C. > >> Cntrl-Z suspends whatever process I was running and returns me to the > >> command prompt. How can I resume the suspended process? > R> Use ps to fine the pid, then fg with the pid to bring it back. > Can also type %(name of program) to bring it back (at least in Linux) This is a feature of the shell, not the OS. Bash, csh and FreeBSD's /bin/csh all support it. Peter types: > > 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? > How about from a tty to an xterm in X? You need an external seesion manager to do this (possibly RH's bash does fills that role). Personally, I use xemacs, and then do "gnuclient -nw' get xemacs to start a frame on my tty. If xemacs is a bit more than you want to deal with, look into the screen utility, which is in the ports tree. On Tue, 28 Nov 2000, Rick Hamell wrote: > > > > > > Occasionally, I have accidentally hit cntrl-Z when trying to hit cntrl-C. > > > Cntrl-Z suspends whatever process I was running and returns me to the > > > command prompt. How can I resume the suspended process? > > > > Use ps to fine the pid, then fg with the pid to bring it back. > > > > > > > > Rick > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -- Mike Meyer http://www.mired.org/home/mwm/ Independent WWW/Unix/FreeBSD consultant, email for rates. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message