Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-09-2006, 11:18 AM
|
#1
|
Member
Registered: Apr 2005
Location: perugia
Distribution: ubuntu
Posts: 181
Rep:
|
open a process from ssh
I've got a question.. if I login to my computer from ssh and run a program like azureus even if I run it with "azureus &" to detach it from the shell, when I close the connection the program closes....
How can I do it to run persistently a service from remote????
thank you...
|
|
|
03-09-2006, 11:20 AM
|
#2
|
Member
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417
Rep:
|
nohup is your friend in this case.
|
|
|
03-09-2006, 12:10 PM
|
#3
|
Senior Member
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Rep:
|
Wells is right. nohup is the answer.
But let me introduce you a program named "screen".
It is great to keep a session open so you can close the connection and re-connect later and re-open that session.
After you get into the remote system run the program "screen". A new shell will be opened. Run your program now. Let say it is a program like badblocks that take forever to finish and shows in the console the progress.
Then type CTRL-A, D to detach from the screen. Close your connection to the remote shell.
At any time, you can connect to the remote host, and this time, type "screen -r" to re-attach to the existing session. You get the badblocks running and any output on terminal.
It is a obscure but great program that deserves more visibility.
cheers,
|
|
|
03-14-2006, 10:22 PM
|
#4
|
Member
Registered: Nov 2005
Distribution: Fedora 4
Posts: 40
Rep:
|
screen is great! I even created an admin account which makes 'screen' the default shell. (You gurus out there tell me whether this is a good or bad idea, please!) But it's nice to simply log in with my admin username and be looking at a prompt which is already running screen. Then if I close the connection (or it gets dropped due to connectivity problems) I just log in again and see exactly what I was looking at before. A real lifesaver!
Krasl
|
|
|
All times are GMT -5. The time now is 02:21 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|