SCP question.

eigen

Diamond Member
Nov 19, 2003
4,000
1
0
Scenario:

I ssh into my box at work.
I start a process through my ssh term.
I close that term window and the process quits.
I know the process quits as I also have another term open and am using ps -A.


Question:

How can I make the process not quit even though quit the term window.


Things to be noted:
The program always runs with a term window open ( even when logged in locally).

I think this involves some X wizardy or maybe just some flag I dont know about?
 

lansalot

Senior member
Jan 25, 2005
298
0
0
"&" means - "start in the background". It it still attached to the foreground process.

"man nohup"
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
screen is essential IMO, but nohup will do the job if you don't want to learn screen.
 

eigen

Diamond Member
Nov 19, 2003
4,000
1
0
Thanks guys it looks like nohup is working.I assume that is short for no hangup....thats pretty oldskool.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
It's still called nohup because when you quit a shell all that shell's children are sent a hangup (or HUP) signal and the default HUP signal action is to exit.
 

eigen

Diamond Member
Nov 19, 2003
4,000
1
0
Originally posted by: Nothinman
It's still called nohup because when you quit a shell all that shell's children are sent a hangup (or HUP) signal and the default HUP signal action is to exit.

isnt that what I said:confused:


NM better not argue with the WIIIIZZZAARRRDDD.
 

eigen

Diamond Member
Nov 19, 2003
4,000
1
0
Originally posted by: pitupepito2000
eigen, I would suggest that you look into screen. It's a program that you will find extremely useful :)

I looked.Screen's man page in bigger than bash ..... that makes my peepee hurt.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
screen is the first thing I usually install on a new system.

The most important things to know in screen:
^a c -Create a new window
^a n -Switch to the Next window
^a d -Detatch session
screen -D -R SCREEN.ID -Attatch to screen session
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
I looked.Screen's man page in bigger than bash ..... that makes my peepee hurt.

Get your peepee out of the cdrom drive. The man page is so long because it details every option in the config file, most of them you don't need to mess with.