Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help with scp access



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).




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org