Run as a daemon or service: Difference between revisions

m
No edit summary
Line 11:
==={{header|QB64}}===
<lang QB64>'Metacommands and Statements for closing console or window
'' The following line is double commented ('') as some metacommands still execute even when singularly commented (')
''$Console 'Closes the console but does not close the main window, used for whole program run
'_Console Off 'Closes console but does not close main window, used for portion of a program run with _Console On
'_ScreenHide 'Closes main windowm used for a portion of a program run with _ScreenShow
$ScreenHide 'Closes main window, used for whole program run. (NB: this metacommand should not be commented in order to execute)
 
Open "/home/user/Documents/myDaemon.log" For Append As #1 'Fully qualified file path for output