From owner-freebsd-newbies Sat Aug 22 06:49:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA03010 for freebsd-newbies-outgoing; Sat, 22 Aug 1998 06:49:31 -0700 (PDT) (envelope-from owner-freebsd-newbies@FreeBSD.ORG) Received: from nothing-going-on.demon.co.uk (nothing-going-on.demon.co.uk [193.237.89.66]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA02997 for ; Sat, 22 Aug 1998 06:49:22 -0700 (PDT) (envelope-from nik@nothing-going-on.demon.co.uk) Received: (from nik@localhost) by nothing-going-on.demon.co.uk (8.8.8/8.8.8) id NAA26243; Sat, 22 Aug 1998 13:20:40 +0100 (BST) (envelope-from nik) Message-ID: <19980822132040.54288@nothing-going-on.org> Date: Sat, 22 Aug 1998 13:20:40 +0100 From: Nik Clayton To: Malartre , FreeBSD-Newbies Subject: Re: Tip #1 of the day :-) References: <35DE300F.FB2B4901@aei.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1i In-Reply-To: <35DE300F.FB2B4901@aei.ca>; from Malartre on Fri, Aug 21, 1998 at 10:42:24PM -0400 Organization: Nik at home, where there's nothing going on Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, Aug 21, 1998 at 10:42:24PM -0400, Malartre wrote: > Then, you find than there is only 2 xterm and a login in your Xwindow. > So, if you type "xterm" alone in one of the xterm, it will start another > xterm, but the previous one will not be useable! > The solution is to start the xterm in background in xwindow: > --- > xterm & > --- Alternatively, you can suspend the second xterm, then tell it to run 'in the background', which is what adding the ampersand to the command line does For example, using tcsh, I can do % xterm <- xterm starts up, this shell is frozen ^Z <- I hit CTRL+Z to suspend the new xterm, which is stopped Suspended <- tcsh prints "Suspended" % bg <- I type 'bg', to put the new xterm in the background [1] xterm & <- My new xterm is job #1 started from this shell % jobs <- I type "jobs" to see which jobs are running [1] Running xterm % You can do the same thing in other shells. For example, the above using 'sh' is pretty similar $ xterm ^Z%1 Suspended $ bg $ jobs [1] 25939 xterm The differences are mostly that when 'sh' prints "Suspended" it doesn't put a newline first (which is why it appears on the same line as I hit CTRL+Z) and the jobs command lists the process ID (PID) of the running xterm. N -- Work: nik@iii.co.uk | FreeBSD + Perl + Apache Rest: nik@nothing-going-on.demon.co.uk | Remind me again why we need Play: nik@freebsd.org | Microsoft? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message