[Web4lib] fire fox

Thomas Bennett bennetttm at appstate.edu
Thu Oct 19 10:22:08 EDT 2006


Don't know if you've seen this From 
http://kb.mozillazine.org/Firefox_:_FAQs_:_Run_more_than_one_instance_in_Linux:
=============================================
Run multiple instances in Linux
(Redirected from Firefox : FAQs : Run more than one instance in Linux)

On Linux systems, you can run more than one instance of Firefox. Each instance 
will have its own cookies, etc, which is useful for debugging web 
applications. While Firefox is running, execute 
firefox -a firefox -remote "OpenURL('http://your.homepage.here',new-window)"

You can also use the following script instead of typing that line every time. 
You need to modify the FIREFOXPATH variable to point to your Firefox 
installation folder. 
#!/bin/bash
# Copyleft ! 2004 Carl Forstenberg

#Tiny startup-script for MozillaFirefox

FIREFOXPATH=/opt/MozillaFirefox/
FIREFOXNAME=firefox
URL=${1:-'http://your.homepage.here'}

FIREFOX="$FIREFOXPATH$FIREFOXNAME"
if [ -x $FIREFOX ]; then
	$FIREFOX -remote "ping()" &> /dev/null
	if [[ "$?" == "2" ]]; then
		$FIREFOX $URL &
	else
		$FIREFOX -remote "OpenURL($URL,new-window)" &
	fi
fi

==========================================================
The script example above looks to see if FireFox is running and if it is then 
it opens a new instance of FireFox else it just opens FireFox.  I don't know 
what the effect will be in your situation.

Also untested:

Using command line parameters you can start each new instance from a script 
which selects a profile based of a unique value from each client.

Or, have 10 defined profiles and run
 "ps -axf |grep mozilla >current_profiles" then parse "current_profiles" to 
see which profiles are running per command line arg and start a profile that 
is not running, all this in the same script utilizing the multiple instance 
script above maybe.

For command line args See:
http://www.mozilla.org/docs/command-line-args.html


Thomas


On Thursday 19 October 2006 08:34, simataa masule wrote:
> Please anyone to help. We have configured our OPAC pc's as thinclients
> runnning on redhat9 and pxeboot from thinbsd. The problem we have is we
> can't get mozilla or fire fox to run concurrent on the clients, we have
> the same user name for 10 pc's.
>
> Thanks.
> Masule
>
> _______________________________________________
> Web4lib mailing list
> Web4lib at webjunction.org
> http://lists.webjunction.org/web4lib/

-- 
====================================================================
Thomas McMillan Grant Bennett		Appalachian State University
Computer Consultant III			P O Box 32026
University Library				Boone, North Carolina 28608
(828) 262 6587

An important measure of effort in coding is the frequency with which you write 
something that doesn't actually match your mental representation of the 
problem, and have to backtrack on realizing that what you just typed won't 
actually tell the language to do what you're thinking. -Eric Raymond

Library Systems Help Desk: http://linux.library.appstate.edu/help
====================================================================


More information about the Web4lib mailing list