New topic: 

Console application and Daemonize

<http://forums.realsoftware.com/viewtopic.php?t=45572>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        ehumail          Post subject: Console application and 
DaemonizePosted: Wed Oct 10, 2012 7:07 am                         
Joined: Mon Feb 27, 2012 6:04 am
Posts: 2                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             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to