View previous topic :: View next topic |
Author |
Message |
numerodix l33t
Joined: 18 Jul 2002 Posts: 743 Location: nl.eu
|
Posted: Tue Mar 23, 2004 1:01 am Post subject: Sending a process to the background |
|
|
When I start a process in the foreground, then hit ^Z, that should send it to the background, right? Say I run a backup script that gives no output anyway and by mistake I run it in a terminal in the foreground. What I should have done was to append & at the end of that command but it's too late now, what do I do? Well from what I understand it's ctrl+z, sends it to the background, doesn't it? But from my observations, the process always dies shortly thereafter.
What am I doing wrong? _________________ undvd - ripping dvds should be as simple as unzip |
|
Back to top |
|
|
Lajasha Veteran
Joined: 17 Mar 2004 Posts: 1040 Location: Vibe Central
|
Posted: Tue Mar 23, 2004 1:06 am Post subject: |
|
|
I think that action pauses the process. The only thing you could do is kill the process and start it the correct way next time. _________________ Come and play in my land |
|
Back to top |
|
|
numerodix l33t
Joined: 18 Jul 2002 Posts: 743 Location: nl.eu
|
Posted: Tue Mar 23, 2004 1:26 am Post subject: |
|
|
Pause.. well that's still good. How do I resume? _________________ undvd - ripping dvds should be as simple as unzip |
|
Back to top |
|
|
Lajasha Veteran
Joined: 17 Mar 2004 Posts: 1040 Location: Vibe Central
|
Posted: Tue Mar 23, 2004 1:30 am Post subject: |
|
|
sorry, to resume you need to use
where job # is the number it gave you when you ctrl+z, if you do not have it just type jobs and it will give you a list. _________________ Come and play in my land |
|
Back to top |
|
|
wimac n00b
Joined: 20 Jun 2002 Posts: 28 Location: st. louis, mo
|
Posted: Tue Mar 23, 2004 3:38 am Post subject: |
|
|
Well if you want to send a program to the background you can eather launch it with the "&" as an argument,
You could also suspend the program by using Ctrl + z then using "bg" to send it to the background.
Code: |
# program
ctrl+z
# bg
|
I think thats it. _________________ -------------------
\/\/ | /\/\ /\ [
w i m a c
rm -rf /bin/laden |
|
Back to top |
|
|
Konsti l33t
Joined: 10 Dec 2002 Posts: 691
|
Posted: Tue Mar 23, 2004 10:23 am Post subject: |
|
|
Ya, it is the Ctrl+Z AND bg thing |
|
Back to top |
|
|
|