- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to get files from multiple servers in an e...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2004 07:11 PM
11-08-2004 07:11 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2004 07:32 PM
11-08-2004 07:32 PM
Re: How to get files from multiple servers in an easy script
Go to www.shelldorado.com and look at
http://www.shelldorado.com/scripts/cmds/transfer.ftp.txt
That is a good base for you
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2004 02:48 AM
11-09-2004 02:48 AM
Re: How to get files from multiple servers in an easy script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2004 03:28 AM
11-09-2004 03:28 AM
Solutionscp remotehost1:/path/file1 /tmp/newfile1
scp remotehost2:/path/file2 /tmp/newfile2
ftp and remsh have potential security problems.
If you have a lot of files on a lot of hosts and you need to run a process on the remote hosts, then you could use "ssh". example-
for h in remotehost1 remotehost2 ; do
for f in /myfile1 /myfile2 ; do
ssh $h "/myconvert $f >/tmp/out; scp -q /tmp/out orighost:/tmp/$h/$f"
done
done
This will loop through a list of remotehosts and files, run a "convert" program on the file, then transfer the converted file back to the original host.
HTH
-- Rod Hills
- Tags:
- scp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2004 04:44 AM
11-09-2004 04:44 AM
Re: How to get files from multiple servers in an easy script
# cat rcpgetdoc
#!/bin/sh
cd /htdocs/server-files
HOSTS=`cat bbhosts`
for i in $HOSTS; do
SFILE=${i}.html
rcp ${i}:/opt/cfg2html/$SFILE .
chmod 644 $SFILE
done
Rgds...Geoff
- Tags:
- rcp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2004 05:44 AM
11-09-2004 05:44 AM
Re: How to get files from multiple servers in an easy script
/usr/bin/ftp -i -n -v < /ftp_sundance1.txt
cat ftp_sundance1.txt
open 10.32.113.177
user sweet qqqqqq
bin
hash
prompt off
cd $PATH
dir
mget file
bye
open 10.32.113.178
user sweet qqqqqq
bin
hash
prompt off
cd $PATH
dir
mget file
bye
br Jan
- Tags:
- ftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2004 10:35 PM
11-09-2004 10:35 PM
Re: How to get files from multiple servers in an easy script
Thanks all for your suggestions and help and have used rcp to do this and worked fine.
Can right the syntax down if anybody is interested.