Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-09-2004, 06:55 AM   #1
Registered: Jun 2004
Distribution: Mandrake 10.0/Fedora Core 2
Posts: 31

Rep: Reputation: 15
send process to background

I have another small question that I could do with finding out. I remember once being told that it was possible to send a process created at the console to the background. For example, if I typed
$ kwrite
at the console, it would launch the application but leave the console useless until it was closed. Therefore, is there a way, once this has been done, to unlink the process from the console, hence leaving the application open and making the console usable again. I know that it can be done using:
$ kwrite &
But I don't always remember the '&'.

Is this possible? Or am I just going crazy?

Many thanks

PS. Is it therefore also possible to relink a process with the console window?
PPS. Sorry for any poor terminology, i'm still getting the hang of Linux

OS: Mandrake Official 10.0
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 07-09-2004, 07:53 AM   #2
Registered: Mar 2003
Location: UK Darlington
Distribution: Fedora Freebsd Centos
Posts: 288

Rep: Reputation: 31
I might have misinterpreted your question , but , u r in a graphical enviroment right? , anyway CTRL Z usually puts a job to the background and u get a bash prompt back , then if u type: - jobs , all the backgrounded processes r given a 'job No' the u can type:- fg(job No) and that job will be brought to the fore. I'm not at me linuxbox at the mo so thats from memeory , but think its more or less accurate.
1 members found this post helpful.
Old 07-09-2004, 10:15 AM   #3
Registered: Jun 2004
Distribution: Mandrake 10.0/Fedora Core 2
Posts: 31

Original Poster
Rep: Reputation: 15
Hi, thanks. That works great!
Old 07-09-2004, 11:34 AM   #4
Registered: May 2004
Location: NY
Distribution: fedora core 1
Posts: 65

Rep: Reputation: 18
if u need the background process to keep running rather than remain in suspended state .... after staring the program press CTRL Z and type bg (background). the program u invoked earlier will keep running in the background rather than remain suspended
2 members found this post helpful.
Old 07-09-2004, 11:45 AM   #5
Registered: Feb 2004
Location: Canada
Distribution: Slackware
Posts: 479

Rep: Reputation: 30
don't you use the @ command to put it in the background?

Like /usr/bin/guarddog @

Old 07-13-2004, 02:42 PM   #6
Registered: May 2004
Location: NY
Distribution: fedora core 1
Posts: 65

Rep: Reputation: 18
i generally use
> emacs &

but if i sometimess miss the & i use CTRL-Z and bg
1 members found this post helpful.
Old 07-13-2004, 05:33 PM   #7
Registered: Jul 2004
Location: Sherbrooke, Quebec, Canada, North America, World, Milky Way
Distribution: Gentoo
Posts: 103

Rep: Reputation: 16
I think CRTL+Z stops temporarily the process, rendering it useless until you bring it back up.

I usually use program &
1 members found this post helpful.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
code that send a process to the background feetyouwell Programming 5 11-29-2010 04:20 PM
how a father process know which child process send the signal SIGCHLD icoming Programming 10 07-20-2010 08:26 AM
is there a system call to send process to run in the background? feetyouwell Programming 4 10-01-2004 05:58 AM
how to run any binary in background - background process tej Linux - Newbie 1 08-16-2004 01:27 AM
Background process h8r Linux - Newbie 5 01-13-2003 05:21 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:37 PM.

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