VectorLinux
October 24, 2014, 05:06:35 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: HOWTO remote control Seamonkey and other spawn of moz  (Read 2513 times)
Triarius Fidelis
Vecteloper
Vectorian
****
Posts: 2399


Domine, exaudi vocem meam


WWW
« on: September 15, 2006, 07:19:16 pm »

http://www.mozilla.org/unix/remote.html

the functionality described in the above webpage applies to any moz-based browser, afaik, and is more or less self-explanatory. but for demonstration:

#!/bin/sh

SEAMONKEY_PATH=/opt/seamonkey/bin/seamonkey

if $SEAMONKEY_PATH -remote 'ping()' &> /dev/null; then
  exec $SEAMONKEY_PATH -remote "openURL($1,new-tab)"
else
  exec $SEAMONKEY_PATH $1
fi


This example script checks if an instance of Seamonkey is running with the remote ping() function. If so, it opens a new tab in this running process with openURL(someURL,new-tab). Otherwise, it initiates a completely new Seamonkey process with the given URL as its one and only tab

(Note that the argument referenced by $1 must be a proper URL; that is, file:///home/hanumizzle and http://www.vectorlinux.com are both halal, but plain /home/hanumizzle isn't)
Logged

"Leatherface, you BITCH! Ho Chi Minh, hah hah hah!"

Formerly known as "Epic Fail Guy" and "Döden" in recent months
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!