- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to concatenate and FTP
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
08-28-2002 07:44 AM
08-28-2002 07:44 AM
How to concatenate and FTP
to concatenate them and then ftp that
single file (concatenated file).
I wonder if there is a way to ftp that
single concatenated file directly to
destination without first landing it in
the host machine.
Thank you,
Chandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 07:46 AM
08-28-2002 07:46 AM
Re: How to concatenate and FTP
You could bundle them into a tar archive, ftp the tar ball, and then un-tar them on the receiving server.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 10:00 AM
08-28-2002 10:00 AM
Re: How to concatenate and FTP
not sure if I got you right (?)
You need file1, file2, file3 from host_a to be transfered to a single "fileCONCAT" on host_b, but do not have the space to create "fileCONCAT" on host_a before the transmission ?
This sounds to be a problem for a remote shell call and some redirections rather than ftp. Shorthand try (not sure about needed quotes for ">" and "<":
cat file1 | rsh targethost 'cat > fileCONCAT'
cat file2 | rsh targethost 'cat >> fileCONCAT'
cat file3 | rsh targethost 'cat >> fileCONCAT'
The idea should be clear, I am not at my system so I can not test. Might be need to use double quotes or "\" try with small and unimportant files first !
Hope this helps
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 11:54 AM
08-28-2002 11:54 AM
Re: How to concatenate and FTP
I am not sure what you want to do with the concatenated file but remote concatenating is possible with the append ftp command.
You have some files on your local host
(aaa, bbb, ccc) and want to concatenat them in one file on a remote host.
ftp remotehost
ftp> put aaa
ftp> append bbb aaa
ftp> append ccc aaa
ftp> bye
Now the local aaa,bbb,ccc files are concatenated in the file aaa on the remote host.
The disadvantage with this method is there is no easy way to split the files again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2002 03:22 PM
08-28-2002 03:22 PM
Re: How to concatenate and FTP
If those files are in a directory and all of those files need to be FTP'd, then use
MPUT *
If the files are say *.text or say bigfile* files, then
MPUT *.text
or
MPUT bigfile*
have you thought about "rcp"????
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2002 09:21 AM
08-29-2002 09:21 AM
Re: How to concatenate and FTP
Volker, you are right. I have file1, file2, file3 on the host machine but do not want to waste time and resource to create fileCONCAT.
Leif, Thank you for you input.
Harry, i missed to say that i don't have to un-concatenate the file in the client/remote machine. Our requirement is such that we create more than one file for making use of parallel processing etc and the client needs just one file. I hope it is not silly asking this question for this requirement.
Thank you every one again.
Chandra