Help with scp access
James R. Van Zandt
jrv at vanzandt.mv.com
Sat Jul 8 15:31:17 EDT 2000
Scott Ehrlich <scott at MIT.EDU> writes:
>When trying to scp a file to multiple systems at once (using ftp.ssh.org's
>ssh-1.2.27 on a Slackware 7 setup to other Slackware 7 systems), I get:
...
>My command line is:
>% scp testfile scott at host1:. scott at host2:. scott at host3:. scott at host4:.
I believe scp treats multiple arguments just like cp: the last one is
the destination, and all the rest are sources.
I suggest using shell:
for x in host1 host2 host3 host4; do scp testfile $x ; done
or, if no interaction is needed,
for x in host1 host2 host3 host4; do scp testfile $x & done
^
- Jim Van Zandt
-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).
More information about the Discuss
mailing list