LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Making a wine application run deamonized? (https://www.linuxquestions.org/questions/linux-software-2/making-a-wine-application-run-deamonized-329098/)

jon_k 06-01-2005 02:27 AM

Making a wine application run deamonized?
 
I've got a Win32 server that I can run from wine over the internet, the problem is I need to make it deamonized, so when I quit SSH it will run in the background. (Usually bash kills all it's child processes which include wine, lynx, or whatever else)

Is there any way I'd be able to get this to work so I don't have to keep an SSH terminal open all the time? Thanks.

[edit]
More info: The program is actually a server that runs in the command console of windows. I tried dosemu-freedos, but it doesn't work -- freedos is so old, it can't even support long filenames. I need something that could emulate the newer win32 dos part of windows. Wine has support for this, but it likes to do it graphically, why can't I find something to just do it on the console?

infinity42 06-01-2005 04:57 AM

What you can do is this:
Amp off the process when you run it:
Code:

wine whatever &
Now you should still have a console, but it will still end when you close the ssh session, so:
type 'jobs' You should get a list of jobs (there is probably only one)
Code:

[1]-  Running                inkscape &
[2]+  Running                gimp &

now type:
Code:

disown -h #1
if the jobnumber isn't 1, replace it with the correct number. so if wanted to disown the GIMP, i would type
Code:

disown -h #2
Now the process will continue even after you close the console.
I think this might be specific to bash, but other shells will probably have a similar implementation.

Hope that helps


All times are GMT -5. The time now is 03:31 AM.