'
' No pipes so we use watch files for external control
'
Sub WFT_Tick
wft.Enabled = False
' look for watch files
If (File.Exists(var.Get("home"),"BaseAppServer.jar")) Then Fin
If (File.Exists(var.Get("home"),"off")) Then Fin
If (File.Exists(var.Get("home"),"drop")) Then Fin
If (File.Exists(var.Get("home"),"tick")) Then
Try
File.Delete(var.Get("home"),"tick")
Dim F As OutputStream = File.OpenOutput(var.Get("home"),"tock",False)
F.Close
Catch
Log("Tick/Tock file error")
End Try
End If
If DoCycle = 0 Then Fin ' Keep the code fresh and recycle app
DoCycle = DoCycle - 1
wft.Enabled = True
End Sub
public Sub Fin
var.Close
Log("")
ExitApplication
End Sub