From owner-freebsd-questions@FreeBSD.ORG Mon Jul 21 06:32:02 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6BC4F106564A for ; Mon, 21 Jul 2008 06:32:02 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by mx1.freebsd.org (Postfix) with ESMTP id E09088FC14 for ; Mon, 21 Jul 2008 06:32:01 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so806995fgb.35 for ; Sun, 20 Jul 2008 23:32:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=wiRzqNhOjQU46bOdMurSGOJc40I9kEjz7YwIl+Cn5U0=; b=PBLMdtpgo7q9nlEFm7X37hiLdZ3k1bg9mqELNPnkbjFYEtcCslJmu3nJ4X5H8aWvuK zlo08smaZmeoiKuk2mCdUdd8XKZ3V1QpI1NCDbJvEpx1c7y34QTSH27JhL80JLW0KjiV fdudbJ/Kx8jwiswms8SIqxPXUZC3560j1CNbU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=SC1Kw0ZomBgVI+5cP9MQU23uJCMaLb9TvliB4hjLcN0fBuK7w6qd6wiJgxju0y4dI8 R5xwpC8A02gUZ5KjnobbogaHw+DqgHPRxIPEk75rXhpc0PxV73gHnEM7yM/9uNzgpkHO ZOvdrBOjfdZm19XoX5KOnzo3BHGPOrifSV2NI= Received: by 10.86.54.3 with SMTP id c3mr4350753fga.55.1216621920111; Sun, 20 Jul 2008 23:32:00 -0700 (PDT) Received: by 10.86.3.17 with HTTP; Sun, 20 Jul 2008 23:32:00 -0700 (PDT) Message-ID: <1bd550a00807202332g69a71b66j8c985dc5f61e22e5@mail.gmail.com> Date: Mon, 21 Jul 2008 08:32:00 +0200 From: "=?ISO-8859-1?Q?Fernando_Apestegu=EDa?=" To: EdwardKing In-Reply-To: <00d501c8eafa$174daff0$3f83a8c0@neusofteaf5839> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <00d501c8eafa$174daff0$3f83a8c0@neusofteaf5839> Cc: FreeBSD Subject: Re: How to change process status? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jul 2008 06:32:02 -0000 On 7/21/08, EdwardKing wrote: > I make a process running in background,like follows: > $./a.out & > > I want to know how to change a.out from backgound to foreground and how to stop it? with "fg" and the number the shell returns after you placed the process in the background. Let's say: $./a.out & [1] 27537 fg %1 -- Here the shell will bring the process to the foreground -- Now you can stop it with Ctrl-c for instance. Cheers > > Thanks > > > ---------------------------------------------------------------------------------------------- > Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) is intended only for the use of the intended recipient and may be confidential and/or privileged of Neusoft Group Ltd., its subsidiaries and/or its affiliates. If any reader of this communication is not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying is strictly prohibited, and may be unlawful. If you have received this communication in error, please immediately notify the sender by return e-mail, and delete the original message and all copies from your system. Thank you. > ----------------------------------------------------------------------------------------------- > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >