LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-12-2006, 12:50 PM   #1
AZaraT
LQ Newbie
 
Registered: Jun 2006
Posts: 16

Rep: Reputation: 0
sssh: how to keep service going when closing consol?


Okay...

What I wonna do, is to remote start a server, with SSH, but the only problem is, that when I close the consol on the remote computer, it allso close the server. I know there is a way to keep the server up when the consol is closed, but I can't remember it.

Hope anyone can help me
AzaraT

Oh noes i'm dumb.. nevermind..

Last edited by AZaraT; 12-12-2006 at 01:11 PM.
 
Old 12-12-2006, 01:01 PM   #2
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Code:
man nohup
.
 
Old 12-12-2006, 01:34 PM   #3
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
run it inside 'screen'

http://www.gnu.org/software/screen/

Last edited by johnson_steve; 12-12-2006 at 01:36 PM.
 
Old 12-17-2006, 10:11 AM   #4
AZaraT
LQ Newbie
 
Registered: Jun 2006
Posts: 16

Original Poster
Rep: Reputation: 0
Hehe thanks for the answer and im sorry for not making a search..
 
Old 12-17-2006, 11:42 AM   #5
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
I'm glad to tell people about 'screen' it is a very useful program that I use on a daily basis and I'm not sure how I managed before I discovered it (wait yes I do; I had 5 monitors on my desk.)
 
Old 12-18-2006, 01:45 AM   #6
dannyk1
Member
 
Registered: Aug 2004
Location: Geelong, Vic Australia
Distribution: Gentoo, Ubuntu,and sometimes something from billy gates (when Im desperate)
Posts: 188

Rep: Reputation: 31
you might just have to put the & symbol after the command.

eg.

command &

this will run the command as a daemon
 
Old 12-18-2006, 06:54 AM   #7
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787
Blog Entries: 6

Rep: Reputation: 75
this way also migh work

ssh -f your host command port whatever follow by command sleep 365d

this will bring the work progress to background
 
  


Reply

Tags
ssh



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SMPPPD closing named Service unexpectedly Last Attacker Linux - Networking 1 06-13-2006 05:20 AM
Closing port 1723 "pptp service" in linux Darwish Linux - Security 7 11-12-2005 04:17 AM
sssh what mchitrakar Linux - Networking 3 10-04-2005 09:52 PM
consol fonts sharapchi Slackware 1 04-13-2005 12:41 PM
screen shot from consol...???? TAAN Linux - Networking 4 01-17-2005 01:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:26 AM.

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
Open Source Consulting | Domain Registration