[Gambas-user] Re; Console applications ..
Gareth Bult
gareth at ...1689...
Tue Jul 17 19:29:19 CEST 2007
Ok, fantastic news ..
However!
I don't appear to have "Application.Daemon" (!)
Or indeed any property of "Application" that looks remotely like "Daemon" ...
Help!
--
Gareth Bult, Encryptec Limited
Tel: 0845 25 77033, Mob: 07891 389657
Email: gareth at ...1689...
Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request.
----- Original Message -----
From: "Benoit Minisini" <gambas at ...1...>
To: "mailing list for gambas users" <gambas-user at lists.sourceforge.net>
Sent: Tuesday, July 17, 2007 5:51:23 PM (GMT) Europe/London
Subject: Re: [Gambas-user] Re; Console applications ..
On mardi 17 juillet 2007, Gareth Bult wrote:
> Hi,
>
> Is there a "proper" way to background a gambas console application ...
>
> I'm currently doing;
>
> application >/dev/null 2>&1 &
>
> I'm conscious that it's not closing stdin, but it "seems" to be working ok
> ..
>
> Any recommendations ?
>
> Gareth.
You can daemonize it now, by setting Application.Daemon to TRUE.
When daemonized, thr application forks, the parent fork terminates, so that
there is no connection with the initial application parent process, and the
child fork closes its standard output, input, error output, and sets its
current directory to "/".
You cannot return to the "non-daemonized" state of course.
The name of this property may change if I (or somebody else) find a better
name.
Regards,
--
Benoit Minisini
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
More information about the User
mailing list