LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 06-01-2005, 02:27 AM   #1
jon_k
Member
 
Registered: Jul 2003
Location: Fort Worth, Texas
Distribution: Mepis Linux 2004
Posts: 547

Rep: Reputation: 30
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?

Last edited by jon_k; 06-01-2005 at 03:26 AM.
 
Old 06-01-2005, 04:57 AM   #2
infinity42
Member
 
Registered: Apr 2005
Location: England
Distribution: Gentoo
Posts: 142

Rep: Reputation: 16
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Application similiar to ksnapshot (making screenshots) krajzega Linux - Software 18 09-19-2009 07:56 AM
Making an application against different system libraries davidkline Linux - Newbie 1 11-01-2005 01:08 PM
Wine can run only console application. vadimkovalev Linux - Newbie 1 09-29-2005 11:57 AM
Trying to run photoshop in wine. Install, but wont run. bruno buys Linux - Software 14 07-15-2004 04:30 PM
what windows application do you run with wine etc Alexop Linux - General 3 08-21-2002 04:54 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration