rsync/ssh-script no longer working in hamm
Here's something I don't understand:
I used to be able (in bo) to execute the following script to update my
home PC from the one in my office:
sh-2.01$ cat xxx
rsync -e ssh zoppo:.profile .
Simple enough. But since I upgraded both machines to hamm the following
happens:
sh-2.01$ sh xxx
Enter passphrase for RSA key 'hs@mip':
... and then the processes hang (in T state)(just after printing the
prompt). ^C doesn't work, so I have to use ^Z+kill to stop it:
$ ps
PID TTY STAT TIME COMMAND
2383 p0 S 0:00 sh xxx
2384 p0 T 0:00 rsync -e ssh zoppo .profile .
2386 p0 T 0:00 ssh zoppo rsync --server --sender . .profile
$ ps l
FLAGS UID PID PPID PRI NI SIZE RSS WCHAN STA TTY TIME COMMAND
100000 1000 2383 2304 0 0 1508 772 wait4 S p0 0:00 sh xxx
100000 1000 2384 2383 0 0 804 324 do_signal T p0 0:00 rsync -e
100140 1000 2386 2385 0 0 1372 644 do_signal T p0 0:00 ssh zoppo
The funny thing is, it works perfectly, if I type the command at the shell
prompt, or use:
sh -c "`cat xxx`"
Can anyboy enlighten me what's going on here, and what the difference is
between 'sh xxx' and 'sh -c "`cat xxx`"' or entering the command by hand?
Harald Schueler
Universitaet Essen Tel +49-201-183-2456/2558
Fachbereich 7 Fax +49-201-183-2120
45117 Essen E-mail hs@ILP.Physik.Uni-Essen.DE
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: