- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Can't "put" and "take" with cu under linux?
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
01-03-2002 08:18 AM
01-03-2002 08:18 AM
Is there an alternative command to use with "cu" for this purpose under Linux? Or, do we have to use FTP for file transfer? (We don't always have a RAS to use with FTP, so that is a problem for us)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2002 04:21 PM
01-07-2002 04:21 PM
Re: Can't "put" and "take" with cu under linux?
What exactly is the behaviour when you try to transfer files ?
You may know that problems can occur during file transfer via modems (even via FTP, but less often) when some special characters are encountered and taken by the device as control characters.
Therefore, the best way to make sure the transfer will take place correctly is to uuencode the files. This means converting the files into a 7-bit format, transfer it, then re-assemble 7-bit data units to retrieve the original data (uudecode).
Example : you have 3 files to transfer, let's say file1, file2, file3.
To reduce transfer size, you may want to tar then gzip as follows :
tar cvf file.tar file1 file2 file3 ; gzip file.tar
After that, uuencode the result as follows :
uuencode file.tar.gz file.tar.gz >file.uue
Transfer your file (TAKE, PUT).
After that, uudecode, then guzip and untar the file :
uudecode file.uue
gunzip file.tar.gz
tar xvf file.tar
Hope this helps.
Good luck.
Kodjo.
P.S. Don't forget to rate this answer (from 1 to 10).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2002 07:09 AM
01-08-2002 07:09 AM
Re: Can't "put" and "take" with cu under linux?
I only need to transfer one file at a time, so I tried "uuencode file > file.uue"; "uuencode file"; and "uuencode file file.uue"
--- none of these commands worked. They all hung.
Any further ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2002 11:45 AM
01-08-2002 11:45 AM
SolutionThe man page for uuencode says:
uuencode [-m] [ file ] name
The "-m" causes Base64 encoding. That's a matter of personal preference. It looks like you are missing the second argument "name". I would try this:
uuencode file file > file.uue
The second "file" ( "name" from the man page ) is the name that uuencode embeds at the beginning of the uuencoded file. When uudecode operates on this file at the remote end, it reads that name and places the output into a file with that name. So if I had a picture file I wanted to encode, I would do this:
uuencode picture.jpg picture.jpg > picture.uue
There is nothing sacred about the "uue" extension. But if you opened the picture.uue file with vi, you would see "picture.jpg" on the first line. That is what uudecode will use.
HTH,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2002 01:06 PM
01-08-2002 01:06 PM
Re: Can't "put" and "take" with cu under linux?
Thank you Tom for your help. Sorry Debbie, my syntax was right but I forgot to explain it.
Regards,
Kodjo