Go Back   Linux Forums by TotalPenguin! Get linux Help! > Linux > Linux General

Linux General Any questions that are not covered by other forums go here.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-08-2008, 01:07 AM
Member
 
Join Date: Jan 2007
Posts: 96
Prog is on a distinguished road
Default Execute in Background

In SSH or the terminal is it possible to execute a program in the background? For instance:

Code:
$ updatedb
Which ties up your terminal for 10-20 minutes. Is it possible to do this in the background and still be able to use the terminal?
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 04-08-2008, 12:59 PM
Jordan's Avatar
Administrator
 
Join Date: Nov 2006
Posts: 570
Jordan is on a distinguished road
Default

Use the & key. Example:

Code:
$ updatedb&
This will execute the process in the background and send messages to your terminal.
Reply With Quote
  #3 (permalink)  
Old 07-04-2008, 03:15 PM
Member
 
Join Date: Jan 2007
Posts: 96
Prog is on a distinguished road
Default

So the & forks it, so to say, and makes it a new process?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:18 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.