You are not logged in.

#1 2005-06-19 01:39:25

Todd_Z
Member
From: MA, USA
Registered: 2005-01-31
Posts: 35
Website

shell to.... no shell

If I launch a prog like xmms in a shell, but then want to either keep working in that shell or close the shell, how do I put it in the .... background? ....

Thanks.

Offline

#2 2005-06-19 01:51:46

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,615
Website

Re: shell to.... no shell

xmms &
runs it as a background process. to close the shell, and keep the app up (assuming you are in X), type exit. Clicking the X in the corner terminates it..not what you want.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2005-06-19 02:43:51

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: shell to.... no shell

As cactus said, if you put an ampersand ( & ) at the end of the command you're running, it'll run in the background.

If you've already run a program, but want to put it in the background, then focus the terminal you ran the program from, then type CTRL+Z (to suspend/"pause" the app) then on the command line, type:

> bg
>

to start the app up again in the background.  The console output will look something like this if you run XMMS and use the CTRL+Z trick:

$ xmms

[1]+  Stopped                 xmms
$ bg
[1]+ xmms &
$ 

The line that says "Stopped" will appear after you hit CTRL+Z.

Offline

Board footer

Powered by FluxBB