LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 07-09-2004, 06:55 AM   #1
radam
Member
 
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
Radam

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
 
Old 07-09-2004, 07:53 AM   #2
james.farrow
Member
 
Registered: Mar 2003
Location: UK Darlington
Distribution: Fedora Freebsd Centos
Posts: 288

Rep: Reputation: 30
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.
 
Old 07-09-2004, 10:15 AM   #3
radam
Member
 
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
linux_ub
Member
 
Registered: May 2004
Location: NY
Distribution: fedora core 1
Posts: 65

Rep: Reputation: 17
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
 
1 members found this post helpful.
Old 07-09-2004, 11:45 AM   #5
cereal83
Member
 
Registered: Feb 2004
Location: Canada
Distribution: Slackware
Posts: 478

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
linux_ub
Member
 
Registered: May 2004
Location: NY
Distribution: fedora core 1
Posts: 65

Rep: Reputation: 17
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
netmask
Member
 
Registered: Jul 2004
Location: Sherbrooke, Quebec, Canada, North America, World, Milky Way
Distribution: Gentoo
Posts: 103

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

I usually use program &
 
  


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 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


All times are GMT -5. The time now is 07:52 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration