FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor


 
 
LinkBack Thread Tools
 
Old 07-16-2008, 06:55 AM
"Joy Methew"
 
Default scp

hello all....
can we give multiple destination in one statement scp
command.

Thanks
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 07-16-2008, 07:05 AM
"Daniel Carrillo"
 
Default scp

2008/7/16 Joy Methew <ml4joy@gmail.com>:
> hello all....
> can we give multiple destination in one statement scp
> command.

No, you can't.

But, you can do something like this:

for i in <dir1> <dir2> <dir n> ; do
scp myfile user@host:/$i
done

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 07-16-2008, 07:20 AM
"Hari N"
 
Default scp

On Wed, Jul 16, 2008 at 2:55 AM, Joy Methew <ml4joy@gmail.com> wrote:

> hello all....
> can we give multiple destination in one statement scp
> command.
>

No, but you can write a small script such as:

for host in <hosts-list>
do
scp file/files $host:/destination-path
done

--
Hari
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 

Thread Tools




All times are GMT. The time now is 06:47 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org