Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 26th May 2012, 01:14 AM
simonarame Offline
Registered User
 
Join Date: Sep 2006
Posts: 3
windows_vistaie
Active Session Process

Hi,

I connected to fc14 with ssh and started a java console program with "&" at the end of the line so that the program runs in background.

If i disconnect from my ssh session, will the java program process be terminated or will it keep going til it terminates itself ?

Thanks

Last edited by simonarame; 26th May 2012 at 02:02 AM.
Reply With Quote
  #2  
Old 26th May 2012, 05:07 AM
nonamedotc's Avatar
nonamedotc Offline
Formerly known as"professorrmd"
 
Join Date: Mar 2011
Posts: 2,733
linuxfirefox
Re: Active Session Process

Since the process runs in the background anyway, you can use disown command before logging out. This will make sure that the process run in the background after you logout.

Now, I am not 100% sure of the solution - use your best judgement!

Last edited by nonamedotc; 26th May 2012 at 05:10 AM.
Reply With Quote
  #3  
Old 26th May 2012, 11:26 AM
Gareth Jones Offline
Official Gnome 3 Sales Rep. (and Adminstrator)
 
Join Date: Jul 2011
Location: Leamington Spa, UK
Age: 30
Posts: 1,852
linuxfirefox
Re: Active Session Process

The "disown" command will prevent an already-running job from being sent a HUP signal when you log out (this is what normally causes it to exit).

To start a new command that way, you can use "nohup command > output.txt &" – nohup will prevent the HUP signal for new commands.
Reply With Quote
Reply

Tags
active, process, session

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Disowning a process started in a ssh session FFUser Using Fedora 2 10th September 2009 05:23 PM
Network only active sometimes (often 0% active), even when waiting for page to load? vootpig Servers & Networking 2 19th May 2009 02:03 AM
DISPLAY of active session karel.hudan Using Fedora 3 25th April 2008 12:11 AM
F7: Mount problems "permission denied: not in active session" 1xused Using Fedora 1 16th June 2007 02:30 AM
Closing session but keeping a program active? ezzetabi Using Fedora 2 15th March 2006 08:50 AM


Current GMT-time: 20:23 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat