Operating System - HP-UX
1753767 Members
5849 Online
108799 Solutions
New Discussion юеВ

bring mozilla to foreground on cde

 
Russell James Walicki
Occasional Contributor

bring mozilla to foreground on cde

I've created a startup icon on a subpanel which starts mozilla. Users sometimes bring up other applications which push mozilla to the background. Since they can no longer see mozilla, they then revisit the toolbar, starting a second, or third instance of the browser. I know how to see if mozilla is running (ps -ef |grep mozilla) but how can I get mozilla back to the foreground, preferrable from the command line.

thanks
2 REPLIES 2
Cesare Salvioni
Trusted Contributor

Re: bring mozilla to foreground on cde

hi
you should change your startup command to a script. In this way you can check and start again or load the page in the existing window. To do this use the options of netscape/mozilla itself: there are a lot of them.
You can start each kind of different window from command line, like mail, browser, mail central, news and so on.
Try netscape -? (or whit a worng option like -xyz) to see the list.
I don't have mozilla here so i cannot be more accurate, sorry

Hope it helps
Petr Simik_1
Valued Contributor

Re: bring mozilla to foreground on cde

I use folowing procedure to kill the process.
Include to your script commands where you Before running new mozzila find whether more mozzila processes are running on the same display and than kill it. Use lsof, this is only the way how to find process+display relation.
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.71/

if you run mozzilaX.sh ip:0.0
than mozzilaX.sh is:

DISPLAYIP=`echo $1|awk -F: '{ print $1}'`
process=`lsof -n|grep mozzila|grep $DISPLAYIP|awk '{ print $2 }'`
for proc in $process
do
#echo $proc
kill $proc
done

than run mozzila