Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Wed Apr 26, 2017 6:45 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Console application and Daemonize
PostPosted: Wed Oct 10, 2012 7:07 am 
Offline

Joined: Mon Feb 27, 2012 6:04 am
Posts: 4
Hi,

I want to create a background application using RS and console app.

The job is read a device status over serial port.
The OS is Debian 6 without GUI, so my solution is:

App.Run
Call Daemonize()

For i As Integer = 0 To 100 //for example
//read serial port
//put the readed string to db
Next
End

The problem that it is not working. After starting app, it quits. (ps -e |grep appname = nothing)
BUT
If I leave the Daemonize() method, the console app is working.

I need to Daemonize, what should I do?


Top
 Profile  
 
 Post subject: Re: Console application and Daemonize
PostPosted: Sat Oct 13, 2012 12:26 pm 
Offline

Joined: Tue Mar 23, 2010 8:44 pm
Posts: 673
ehumail wrote:
Hi,

I want to create a background application using RS and console app.

The job is read a device status over serial port.
The OS is Debian 6 without GUI, so my solution is:

App.Run
Call Daemonize()

For i As Integer = 0 To 100 //for example
//read serial port
//put the readed string to db
Next
End

The problem that it is not working. After starting app, it quits. (ps -e |grep appname = nothing)
BUT
If I leave the Daemonize() method, the console app is working.

I need to Daemonize, what should I do?


What should you do?

Read the documentation and search the forum for the answer.

I believe it is that when running in the IDE the app will quit if Daemonized.

Add your Daemonizing code only when you're ready to build.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group