← Back to team overview

sslug-teknik team mailing list archive

Re: Starte nyt vindue i Mozilla fra Pine?

 

Kresten Skovsted Buch wrote:
#!/bin/bash
PROCRUN=`ps xc | grep -c mozilla-bin`
if [ $PROCRUN = "0" ]
then
  mozilla&
else
  mozilla -remote "openURL(,new-window)"&
fi

Problemet er at der nok starter en browser, men ikke med den rigtige url.

Dit script benytter jo heller ikke adressen. Prøv med:

#!/bin/bash
PROCRUN=`ps xc | grep -c mozilla-bin`
if [ $PROCRUN = "0" ]
then
  mozilla $1 &
else
  mozilla -remote "openURL($1,new-window)"&
fi

Med venlig hilsen

Ole


Follow ups

References