I am creating a console application which need to be run on Linux platform.
It needs to be run every 5 minutes so used timer for that.
Here is the code i am using on App.Open event.
#If Not DebugBuild Then // Do not try to daemonize a debug build
If Not App.Daemonize Then
prowritelog( “Daemonize_Error”, “Could not daemonize the app”)
System.Log( System.LogLevelCritical, “Could not daemonize the app.”)
Return -1
End If
#Endif
//------------
dim t1 as new CustomTimer
t1.Period=60000
t1.Mode=Timer.ModeMultiple
t1.Enabled=true
do
app.DoEvents 300000
loop
I am able to install build on Linux by ./ApplicationName name. but only App.Open event get called it not executing Timers Action event.
Can anyone help me to get it working ?