aspose file tools*
The moose likes Java in General and the fly likes Daemonizing & Recalling an App Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Daemonizing & Recalling an App" Watch "Daemonizing & Recalling an App" New topic
Author

Daemonizing & Recalling an App

Alex Kirk
Ranch Hand

Joined: Aug 13, 2001
Posts: 44
I have no idea if what I'm about to ask for is possible, but it's worth a try.
I'd like to be able to issue my command-line Java app a command that sends it into the background -- or makes it a daemon, or whatever -- and gives me back my shell. Then, I'd like to later be able to issue a command from that shell (or any other shell) that brings my app back to control -- i.e. brining me back to its interface. Optimally, I'd like for this to be shell-independent on UNIX systems, so that if I sent the program to the background and then logged out, it would not only not die, but be available for recall from other shells.
On a semi-related note, it'd be really nice if I could get this app to have a name that shows up when you list processes on UNIX (i.e. "ps aux").
Thanks in advance.
Alex Kirk
Mark Herschberg
Sheriff

Joined: Dec 04, 2000
Posts: 6037
Check out JSR-96, Java Deamons, at http://www.jcp.org/jsr/detail/96.jsp
--Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Daemonizing & Recalling an App