I want to write a script that will read in a list of parameters and run a graphical program with each set of parameters on our compute servers.
I can read in the list of parameters all right, but I can't manage to pass it to the program on the servers that's supposed to do something with it. Sometimes it works, sometimes it doesn't, which is very frustrating to debug. Here's a minimal example (one a many variants I tried):
Code:
#!/bin/bash
let i=1
while test $i -le 10
do
ssh -Y cluster-$i xeyes -fg blue &
let i=$i+1
done
In general, about 1 to 3 xeyes windows get launched, never all ten. "xeyes -fg blue" just stands for the app I want to start and its varying parameters. I tried all sorts of variants of the syntax and also thought of checking the return value of the app and only moving a set of parameters of the list if it was ok, but I couldn't get anything to work. Can anybody help? The error messages I get are pasted below, and I'm using Apple's X11 to connect to Fedora machines, in case that's relevant.
Warning: No xauth data; using fake authentication data for X11 forwarding.
Warning: No xauth data; using fake authentication data for X11 forwarding.
Warning: No xauth data; using fake authentication data for X11 forwarding.
/usr/bin/xauth: error in locking authority file /home/myself/.Xauthority
Warning: No xauth data; using fake authentication data for X11 forwarding.
/usr/bin/xauth: error in locking authority file /home/myself/.Xauthority
Warning: No xauth data; using fake authentication data for X11 forwarding.
/usr/bin/xauth: error in locking authority file /home/myself/.Xauthority
Warning: No xauth data; using fake authentication data for X11 forwarding.
/usr/bin/xauth: error in locking authority file /home/myself/.Xauthority
/usr/bin/xauth: error in locking authority file /home/myself/.Xauthority
Warning: No xauth data; using fake authentication data for X11 forwarding.
Warning: No xauth data; using fake authentication data for X11 forwarding.
/usr/bin/xauth: error in locking authority file /home/myself/.Xauthority
/usr/bin/xauth: error in locking authority file /home/myself/.Xauthority
Warning: No xauth data; using fake authentication data for X11 forwarding.
/usr/bin/xauth: error in locking authority file /home/myself/.Xauthority
X11 connection rejected because of wrong authentication.
X connection to localhost:10.0 broken (explicit kill or server shutdown).
X11 connection rejected because of wrong authentication.
X connection to localhost:16.0 broken (explicit kill or server shutdown).
X11 connection rejected because of wrong authentication.
X connection to localhost:11.0 broken (explicit kill or server shutdown).
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
X connection to localhost:10.0 broken (explicit kill or server shutdown).
X connection to localhost:10.0 broken (explicit kill or server shutdown).
X connection to localhost:10.0 broken (explicit kill or server shutdown).
X11 connection rejected because of wrong authentication.
X connection to localhost:10.0 broken (explicit kill or server shutdown).
X11 connection rejected because of wrong authentication.
X connection to localhost:10.0 broken (explicit kill or server shutdown).