|
|
|
|
|
|
| Author |
Message |
SINNER *nix forums Guru Wannabe
Joined: 19 Feb 2005
Posts: 184
|
Posted: Fri Feb 18, 2005 6:27 pm Post subject:
Re: resuming a background program after logging off / on
|
|
|
* Benjamin Johnson wrote in comp.unix.shell:
| Quote: | Hi,
I have a particular program that runs for a long time, so i use
nohup nice longprog > t.out &
and log off. When i log back on, it's obviously no longer a job in the
shell -- is there any way to reattach a process to your current
shell/terminal so that you can use standard job control commands such as
fg? Or, rather, is it possible to fg a "parentless" process in whatever
shell you're using?
If my terminology isn't precise, the gist is: how can i get control of my
program once i've logged out and logged back in (other than killing it)?
-Ben
|
You can always use screen
start screen
start your task
CTL-A-D
will detatch the shell and the task continues to run.
TO reattach to the scession type
screen -Dr
--
David
I had a lease on an OEDIPUS COMPLEX back in '81 ... |
|
| Back to top |
|
 |
Ed Morton *nix forums Guru
Joined: 20 Feb 2005
Posts: 1073
|
Posted: Fri Feb 18, 2005 6:18 pm Post subject:
Re: resuming a background program after logging off / on
|
|
|
Benjamin Johnson wrote:
| Quote: | Hi,
I have a particular program that runs for a long time, so i use
nohup nice longprog > t.out &
and log off. When i log back on, it's obviously no longer a job in the
shell -- is there any way to reattach a process to your current
shell/terminal so that you can use standard job control commands such as
fg? Or, rather, is it possible to fg a "parentless" process in whatever
shell you're using?
If my terminology isn't precise, the gist is: how can i get control of
my program once i've logged out and logged back in (other than killing it)?
-Ben
|
man screen
Ed. |
|
| Back to top |
|
 |
Benjamin Johnson *nix forums beginner
Joined: 18 Feb 2005
Posts: 1
|
Posted: Fri Feb 18, 2005 6:08 pm Post subject:
resuming a background program after logging off / on
|
|
|
Hi,
I have a particular program that runs for a long time, so i use
nohup nice longprog > t.out &
and log off. When i log back on, it's obviously no longer a job in the
shell -- is there any way to reattach a process to your current
shell/terminal so that you can use standard job control commands such as
fg? Or, rather, is it possible to fg a "parentless" process in whatever
shell you're using?
If my terminology isn't precise, the gist is: how can i get control of my
program once i've logged out and logged back in (other than killing it)?
-Ben |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Thu Jan 08, 2009 10:39 pm | All times are GMT
|
|
Loans | Loans | Remortgages | Myspace Layouts | Remortgages
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|