Notices
The Basement Non-Honda/Acura discussion. Content should be tasteful and "primetime" safe.

UNIX/BSD people

Thread Tools
 
Old 01-09-2004, 10:50 AM
  #1  
Falkon
still alive
Thread Starter
 
Falkon's Avatar
 
Join Date: Sep 2002
Location: Huntsville, AL
Posts: 841
Likes: 0
Received 0 Likes on 0 Posts
Default UNIX/BSD people

I'm logged into my server remotely through ssh and I initiate a port install. If I close ssh while it is compiling, will the server keep compiling? I don't wanna screw something up, but I can't stay logged in forever.
Old 01-09-2004, 10:52 AM
  #2  
antarius
Large Member
 
antarius's Avatar
 
Join Date: Oct 2000
Location: Bay Area, CA
Posts: 4,735
Likes: 0
Received 0 Likes on 0 Posts
Default

Depends.

It's screwed up before on me like that, and didn't another time.

I'd say run a screen, then compile, then detach, then close SSH.
Old 01-09-2004, 10:53 AM
  #3  
Falkon
still alive
Thread Starter
 
Falkon's Avatar
 
Join Date: Sep 2002
Location: Huntsville, AL
Posts: 841
Likes: 0
Received 0 Likes on 0 Posts
Default

Originally posted by antarius
Depends.

It's screwed up before on me like that, and didn't another time.

I'd say run a screen, then compile, then detach, then close SSH.
I'm in class right now. The stupid teacher is teaching HTML and I've done this for years, so I figured I'd work on the server. I'm logged in through telnet and I started compiling WINE.

Can I ^c and pause it?
Old 01-09-2004, 10:55 AM
  #4  
antarius
Large Member
 
antarius's Avatar
 
Join Date: Oct 2000
Location: Bay Area, CA
Posts: 4,735
Likes: 0
Received 0 Likes on 0 Posts
Default

So quit the compiling, to be safe.

Then re-log in, type "screen", then go compile your shit, then hit ctrl+d while it's compiling, and close telnet.

Next time you log in just type screen -r and resume where you left off (it will continue compiling while detached)
Old 01-09-2004, 10:56 AM
  #5  
Falkon
still alive
Thread Starter
 
Falkon's Avatar
 
Join Date: Sep 2002
Location: Huntsville, AL
Posts: 841
Likes: 0
Received 0 Likes on 0 Posts
Default

OK, I'm pretty new to FreeBSD. So, right now should I just close telnet or hit ctrl D to logout? or should I hit ctrl X?
Old 01-09-2004, 10:59 AM
  #6  
antarius
Large Member
 
antarius's Avatar
 
Join Date: Oct 2000
Location: Bay Area, CA
Posts: 4,735
Likes: 0
Received 0 Likes on 0 Posts
Default

Okay... let me explain.

Telnet to your machine.
Type "screen"
That starts a process under a "screen", you can then detach from this "screen" but your machine doesn't realize you've disconnected, and keeps doing whatever it is you were doing under that "screen".
So, run "screen", then start your business (compiling whatever it is)
Then type ctrl+d, that will detach you from screen and put you back into your normal console - all the while your compiling will still be going on behind that "screen".
Ctrl+x to quit or just exit telnet, doesnt matter.
Next time you log in, type screen-r to resume that particular screen and see if your compiling finished. ctrl+X or ctrl+c a hundred million times, to kill the screen (screen -wipe also does it)

I use it when I'm on IRC from somewhere like work. I have to close the window but I don't want to exit IRC. So I "screen", then run BX, then just detach and exit my Telnet screen when the boss would come around. Come back, telnet/login, "screen -r" and continue reading where I left off.
Old 01-09-2004, 11:00 AM
  #7  
Falkon
still alive
Thread Starter
 
Falkon's Avatar
 
Join Date: Sep 2002
Location: Huntsville, AL
Posts: 841
Likes: 0
Received 0 Likes on 0 Posts
Default

OK, it's logged in and compiling right now, but not under screen. How do I safely cancel the compiling then resume it?
Old 01-09-2004, 11:01 AM
  #8  
antarius
Large Member
 
antarius's Avatar
 
Join Date: Oct 2000
Location: Bay Area, CA
Posts: 4,735
Likes: 0
Received 0 Likes on 0 Posts
Default

Safely, that's debatable.
I'd kill it, or ctrl+c it. UNIX is generally good at recompiling things properly after an improper install.
Old 01-09-2004, 11:02 AM
  #9  
Falkon
still alive
Thread Starter
 
Falkon's Avatar
 
Join Date: Sep 2002
Location: Huntsville, AL
Posts: 841
Likes: 0
Received 0 Likes on 0 Posts
Default

apparantly FreeBSD doesn't have screen
Old 01-09-2004, 11:03 AM
  #10  
antarius
Large Member
 
antarius's Avatar
 
Join Date: Oct 2000
Location: Bay Area, CA
Posts: 4,735
Likes: 0
Received 0 Likes on 0 Posts
Default

Go install it.

In all reality; if you have been able to deal this long without closing the telnet session, you can probably rough it out until it's finished.



All times are GMT -8. The time now is 12:16 PM.