Re: [SLUG] Command line Mozilla Q:

From: Brian Coyle (brian@linuxwidows.com)
Date: Sun Feb 16 2003 - 20:55:54 EST


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 16 February 2003 17:16, Doug Koobs wrote:
> Well, I was able to make a little progress with this...

[snip]

> Is there a way to get it to
> continue on to the next commands, even thought the first isn't finished
> executing?

This worked for me (watch the line wrap):

$ cat moztest
#!/bin/bash
/usr/local/mozilla/mozilla &
sleep 25
/usr/local/mozilla/mozilla -remote "openURL (http://www.vwvortex.com,
new-tab)"
/usr/local/mozilla/mozilla -remote "openURL (http://www.gamespy.com, new-tab)"
/usr/local/mozilla/mozilla -remote "openURL (http://www.newsforge.com,
new-tab)"

Depending on the speed of your machine, you may have to tune the sleep time.
(mine is a PII/200 and wouldn't load properly until values > 20)...

Better yet, you may want to add intelligence and check the return value
of the second and subsequent mozilla's.

HTH!

- --
Security is simply a speed bump, not a road block.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Brian Coyle, GCIA http://www.giac.org/GCIA.php

iD8DBQE+UEE1ER3MuHUncBsRAtjfAJ4g8wSc5JTOk3ZKpczZalLAY/fbAACfRW3b
xT/3KlpIMw28d5wiIqghTQE=
=ljjq
-----END PGP SIGNATURE-----



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 15:26:39 EDT