LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-19-2006, 09:16 AM   #1
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Rep: Reputation: 30
simple terminal question


Hello,

I've been wondering how to do this :

if I open for example, amule via terminal, it writes it output on terminal, etc...
but I cannot continue working in the same terminal without closing the amule via CTRL+C.

so how can I do a command something like kaffeine *.avi (or amule) and continue working in the same terminal without viewing the errors/whatever... is there a silent mode for every executeable program?

also, how can I use the screen command, I've done man screen, but I need some examples, and why it's usful.

thanks!
 
Old 05-19-2006, 09:19 AM   #2
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,329

Rep: Reputation: 89
amule&
or
whatever &

Don't know the difference.
 
Old 05-19-2006, 09:32 AM   #3
michapma
Member
 
Registered: Oct 2003
Location: Zürich
Distribution: Debian
Posts: 537

Rep: Reputation: 39
http://www.google.ch/linux?num=20&hl...G=Search&meta=
 
Old 05-19-2006, 10:23 AM   #4
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
using the & will send the process to the background and run it.

you can recall it to the foreground with
Code:
fg
 
Old 05-19-2006, 10:29 AM   #5
FirebirdV0273
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 84

Rep: Reputation: 15
Also, you can use Ctrl-z while a program is running on the terminal to background it. This will present you with your prompt again and the program is still running. You can foreground it again (bring the output of the program back to the screen) with the fg command.
 
Old 05-19-2006, 10:45 AM   #6
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
using screen is another solution. run 'screen' before running the program which puts the output in a newly created virtual terminal. You can detach with 'ctrl+a' + 'ctlr+d' and reattach with 'screen -r'. This has some other benefits then just placing something in the background. 'man screen' for more info.

regards,
...drkstr
 
Old 05-19-2006, 10:47 AM   #7
puffinman
Member
 
Registered: Jan 2005
Location: Atlanta, GA
Distribution: Gentoo, Slackware
Posts: 217

Rep: Reputation: 30
Ctl-Z does not move the program to the background, it suspends it, meaning it stops running. You can have it run in the background with the bg command (and you'll need to specify a job number if there are multiple suspended programs).

Also note that using & will not really free up your terminal if the program in the background still writes to stdout (try running something like ls & and see what happens). The stdout/stderr will need to be redirected to /dev/null or a file if you want your terminal session undisturbed.

As for screen, try googling "GNU screen" to get some opinions and tutorials. I myself find it extremely useful, especially when remotely accessing my desktop at home.
 
Old 05-19-2006, 01:37 PM   #8
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Original Poster
Rep: Reputation: 30
Thanks guys!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple Terminal question itz2000 Linux - Newbie 2 10-01-2005 03:26 PM
Ubuntu Fluxbox simple question, simple answer? generallimptoes Linux - Software 3 09-26-2005 03:03 PM
Simple terminal question TomalakBORG Linux - General 2 03-23-2005 09:33 PM
Installing Programs - A simple question from my simple mind jmp875 Linux - Newbie 6 02-18-2004 10:03 PM
simple question seeking simple answer enzo250gto Linux - Newbie 1 10-27-2001 05:08 AM


All times are GMT -5. The time now is 02:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration