Re: How to change process status?

2008-07-22 Thread EdwardKing
I use FreeBSD7.0

$./a.out 
$

There is show nothing,like such as [1] 27537
Why? 

- Original Message - 
From: Fernando Apesteguía [EMAIL PROTECTED]
To: EdwardKing [EMAIL PROTECTED]
Cc: FreeBSD freebsd-questions@freebsd.org
Sent: Monday, July 21, 2008 2:32 PM
Subject: Re: How to change process status?


 On 7/21/08, EdwardKing [EMAIL PROTECTED] 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 [EMAIL PROTECTED]


--
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 [EMAIL PROTECTED]

Re: How to change process status?

2008-07-22 Thread Dan Nelson
In the last episode (Jul 21), EdwardKing said:
 From: Fernando Apesteguía [EMAIL PROTECTED]
  On 7/21/08, EdwardKing [EMAIL PROTECTED] 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.
 
 I use FreeBSD7.0
 
 $./a.out 
 $
 
 There is show nothing,like such as [1] 27537
 Why? 

/bin/sh doesn't print the job number when you background a process.  You
can use the jobs command to list all backgrounded and suspended jobs. 
In your case, you only have one job, so you can just run fg %1 or
even fg.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


How to change process status?

2008-07-21 Thread EdwardKing
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?

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 [EMAIL PROTECTED]


Re: How to change process status?

2008-07-21 Thread Fernando Apesteguía
On 7/21/08, EdwardKing [EMAIL PROTECTED] 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 [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]