<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks William,<br>
<br>
I have solved my problem (although I still do not understand what
happened).<br>
<br>
Actually, as I was restarting the script from scratch, I have
incorporated everything of the old script but now it is working. I do
not understand since the two files seems to be the same besides some
cosmetic differences (some blank lines in the new one that are not in
the old one). I guess I will have to strengthened my knowledge of Bash.<br>
<br>
Thanks for your help anyway.<br>
<br>
Gilles<br>
<br>
<br>
William Park wrote:
<blockquote cite="mid20040730232847.GA648@node1.opengeometry.net"
type="cite">
<pre wrap="">On Fri, Jul 30, 2004 at 06:57:54PM -0400, Gilles Fourchet wrote:
</pre>
<blockquote type="cite">
<pre wrap="">William Park wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Well, the fact that you got
Usage: mozilla-xremote-client ...
means that it called 'mozilla-xremote-client', as it should. So, the
problem, if any, is somewhere else.
</pre>
</blockquote>
<pre wrap="">I agree. It seems that when I add the "-a firefox" in the variable,
it is not well treated by the shell.
</pre>
</blockquote>
<pre wrap=""><!---->
Everything works here, as expected.
firefox &
/usr/local/firefox/mozilla-xremote-client "openURL(<a class="moz-txt-link-freetext" href="http://kernel.org/">http://kernel.org/</a>, new-tab)"
/usr/local/firefox/mozilla-xremote-client "openFile(<a class="moz-txt-link-freetext" href="file:///etc/">file:///etc/</a>, new-tab)"
Try a simple script for start, eg.
TARGET=/usr/share/firefox_0.9.1/firefox
REMOTE=/usr/local/firefox/mozilla-xremote-client
if ! $REMOTE "openURL($1, new-tab)"; then
$TARGET "$1" &
done
</pre>
</blockquote>
<br>
</body>
</html>