Re: problems with output redirection

2008-04-03 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Bob Proulx on 4/3/2008 12:18 AM: |> ~ echo "" >> $OUTPUT |> done | | Why are there '~' chars in the above lines? Because recent versions of the Enigmail plugin to Thunderbird insist on ~-escaping lines that start with whitespace, to gua

Re: problems with output redirection

2008-04-02 Thread Bob Proulx
Verena Alishahi wrote: > last week I've updated my workstation cluster client (amd 64 bit) from > SuSE 10.0 to openSUSE 10.3. My bash-version is 3.2.25(1)-release. > ... > Both the bash-scripts and the output file are stored on an > NFS-Filesystem (on the workstation cluster server), so every clien

Re: problems with output redirection

2008-04-02 Thread Verena Alishahi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear Bert, thank you for your suggestion. The way to redirect only from local.sh is working. I thought this wouldn't work, because in my original script remote.sh I also redirect to another temporary output-file. In this case I was wrong. Thank you

Re: problems with output redirection

2008-04-02 Thread Bert Barbe
With local and locally I mean ofcourse on the host that is running local.sh e.g;. change local.sh to do ssh $HOST $REMOTE_SKRIPT >>$OUTPUT and remove the redirection to $OUTPUT in remote.sh Bert Bert Barbe wrote: Interesting would be to see how the file looks like on the other hosts ;) Maybe th

Re: problems with output redirection

2008-04-02 Thread Bert Barbe
Interesting would be to see how the file looks like on the other hosts ;) Maybe the file is being extended on the remote host first but the write() isn't synced before the local host writes again. Why not redirect the output off ssh locally so that all writes are local ? That is if the output is

Re: problems with output redirection

2008-04-02 Thread Jan Schampera
Verena Alishahi wrote: > My first script (local.sh) reads a list of worksation cluster clients > from hosts.inp in a loop and prints some output to output.txt. In the > loop a second script (remote.sh) is called in a ssh instruction. > remote.sh then writes some output to the same output.txt file,

problems with output redirection

2008-04-02 Thread Verena Alishahi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear list-members, last week I've updated my workstation cluster client (amd 64 bit) from SuSE 10.0 to openSUSE 10.3. My bash-version is 3.2.25(1)-release. Now I've problems with a bash script, which I used (with bash 3.1) for years without any prob