[nylug-talk] Running Firefox in a While-loop

Antony P Joseph antony at panathara.org
Wed Jul 18 09:29:51 EDT 2007


Hi
   when you start a Firefox and no Firefox is running, the Firefox will
not return immediately.
   when you start a Firefox and a Firefox instance is already running,
the new Firefox command instructs the already running Firefox instance
to open a new window and exits immediately. That is probably the reason
you are seeing lot of instances.

   Probably a good idea is to save the process id of the first instance
and You can check with kill -0 before instantiating a new one.

With regards
Antony

On Tue, 2007-07-17 at 22:55 -0400, Alex Gill wrote:
> Hello List,
> 
> I have an LTSP setup with Firefox running atop XFCE (xfwm and xfdesktop) 
> for the purpose of providing kiosk functionality.  My goal is to have FF 
> always up -- and so it'd re-open after being closed.
> 
> I'm using xfce's "autostart" feature to launch the script at startup:
>     while true; do /usr/bin/firefox; done;
> Sometime this gets out of hand and will start launching ad 
> infinitum....  But other times, it works nicely.  
> 
> Has anyone every tried having such a large app loop like this?  Any 
> advice on getting Firefox to always relauch in a sane and reliable way??
> 
> TIA, Alex Gill
> _____________________________________________________________________________
> Hire expert Linux talent by posting jobs here :: http://jobs.nylug.org
> The nylug-talk mailing list is at nylug-talk at nylug.org
> The list archive is at http://nylug.org/pipermail/nylug-talk
> To subscribe or unsubscribe: http://nylug.org/mailman/listinfo/nylug-talk



More information about the nylug-talk mailing list