Re: periodically check if a service is running

2006-07-13 Thread tomas
On Thu, Jul 13, 2006 at 01:02:38PM +0200, rupert wrote: > Hello, > > imm trying to create a small window that shows me if a serice is running and > displays a small icon that shows the status > i created this function that checks if a PID is there: > > gint check_samba(){ > gint smb_pid2; >

Re: periodically check if a service is running

2006-07-13 Thread Fernando ApesteguĂ­a
Maybe you are looking for g_timeout_add function http://developer.gnome.org/doc/API/2.0/glib/glib-The-Main-Event-Loop.html#g-timeout-add Regards On 7/13/06, rupert <[EMAIL PROTECTED]> wrote: > > Hello, > > imm trying to create a small window that shows me if a serice is running > and > displays

periodically check if a service is running

2006-07-13 Thread rupert
Hello, imm trying to create a small window that shows me if a serice is running and displays a small icon that shows the status i created this function that checks if a PID is there: gint check_samba(){ gint smb_pid2; gchar check_smb_cmd[512]; sprintf(check_smb_cmd, "cat /var/run/samb