linux
How to manipulate your process status
Filed in archive Tips & Tricks by Rom Feria on November 24, 2007
How to manipulate your process status
There are times when you want to execute an application on the command-line without interrupting the most recent process or application that is running. Whilst this is very basic, I find that n00bs may not be familiar with this trick.

On the command-line, execute a process, e.g., "ping" without the trailing "&" that keeps it running in the background. Hit Ctrl-Z to temporarily stop the process.

$ ping 10.32.1.7
^Z
[1]+ Stopped ping 10.32.1.7


Activate it but run as a background process.

$ bg
[1]+ ping 10.32.1.7 &


Continue doing what you are doing but the process continues to run in the background.

Transfer it back as the current process.

$ fg
ping 10.32.1.7


Now, the process is back as the currently running application.

Permalink: How to manipulate your process status
Tags: process  management  linux  2007  status  process+status  opensolaris+revs  process+ping 
Trackback: http://publish.creative-weblogging.com/publish/mt-tb.pl/103619
img Addthis img Ask img Blinklist img del.icio.us img Digg img Fark img Facebook img Google img Lycos img Ma.gnolia Add this page to Mister Wong Mr Wong img Netscape img Netvousz img Newsvine img Reddit img StumbleUpon img Slashdot img Tailrank img Technorati img Wink img Yahoo

Vote for How to manipulate your process status:

  • Currently 6.50/10
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
Rating: 6.50 out of 2 vote(s) cast.
Subscribe
Share It
RSSrss
See all blog subscribe options
Google google
What is RSS?
Yahoo! yahoo
Addthis Subscribe using any feed reader!
Bloglines Bloglines
Newsletter

TwitterFollow us on Twitter!