- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Files not ok after ftp when HP-UX is acceptor
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
05-29-2002 07:00 AM
05-29-2002 07:00 AM
Files not ok after ftp when HP-UX is acceptor
HP-UX is acceptor, file is bad. When HP-UX
is initiator file is good. HP-UX is always
receiving files.
Sorry for my english. I am french.
Thanks for help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 07:04 AM
05-29-2002 07:04 AM
Re: Files not ok after ftp when HP-UX is acceptor
Set the file mode when doing ftp. Examples are 'bi' for binary mode and 'as' for ascii mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 07:21 AM
05-29-2002 07:21 AM
Re: Files not ok after ftp when HP-UX is acceptor
Is this a binary file or ascii file ?
They're other french people on the Forum (as well as many other non-native English speaskers) ;-)
Welcome !
JL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 07:23 AM
05-29-2002 07:23 AM
Re: Files not ok after ftp when HP-UX is acceptor
Can you pls tell the procedure which you are using.
Use the ftp command with -d option .ie for debugging and then try.
Any errors logged in syslog.log ??
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 07:25 AM
05-29-2002 07:25 AM
Re: Files not ok after ftp when HP-UX is acceptor
Can you pls tell the procedure which you are using.
Use the ftp command with -d and -v option .ie for debugging and then try.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 07:56 AM
05-29-2002 07:56 AM
Re: Files not ok after ftp when HP-UX is acceptor
I concur with Shiju and Jean-Luc
The problem most likely comes from an ascii binary mis-match.
If your file is a text file type ascii before using get or put. If if is a program file type binary first.
I've been hit by this many times transferring between HP-UX and WinNT.
(Usually by transferring binary files in ascii mode.)
My HP-UX boxes default binary and the NT box defaults ascii.
Good Luck,
Kel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 09:00 AM
05-29-2002 09:00 AM
Re: Files not ok after ftp when HP-UX is acceptor
Il faut sur le client (hp-ux) dire que vous voulais transferee en mode binaire, avec le commande bin avant de telecharger le ficher.
Bonne chance,
Bill (Grenoble)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 11:51 PM
05-29-2002 11:51 PM
Re: Files not ok after ftp when HP-UX is acceptor
thanks for your answers. I try to explain the problem. The file is created on GCOS8 system.
It is an ascii file with few zones binary (COMP3). The file transfer is set ascii and it is good with AIX and SOLARIS but bad with
HP-UX. Binary zone is interpreted by
HP-UX and not by AIX or SOLARIS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 12:58 AM
05-30-2002 12:58 AM
Re: Files not ok after ftp when HP-UX is acceptor
I don't know much about GCOS8 ( is this a grand child of GCOS6 ?)
Bill, I love your French, but you may prefer to stick to English ;-)
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 01:39 AM
05-30-2002 01:39 AM
Re: Files not ok after ftp when HP-UX is acceptor
GCOS8 n'a aucun rapport avec GCOS6. Le GCOS8 est l'OS des MAINFRAMES (La famille du DPS8 et de ces successeurs ). Je ne peux pas transf??rer
du texte en binaire entre 2 OS diff??rents
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 04:18 AM
05-30-2002 04:18 AM
Re: Files not ok after ftp when HP-UX is acceptor
I say it in English so everybody can follow up this thread.
1) You can of course transfer binary data between different OS. Interpretation of such data on the target machine might be a problem.
2) Therefore, the solution may be if you can transform the data on your source machine (GCOS8) so it's fully ascii and bypass your pb.
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 05:39 AM
05-30-2002 05:39 AM
Re: Files not ok after ftp when HP-UX is acceptor
A binary transfer means exactly that. What you see is what you get. The data will appear on the remote side looking exactly like it did on the local side (notwithstanding complex mainframe issues with binary filetypes and record sizes). So if you want exact matches on both sides, always specify binary.
ASCII transfers was designed to be a translator, knowing that each operating system defines ASCII file formats differently. In Unix, each line is followed by a LineFeed character while in DOS(Windows too), each line is followed by a CarriageReturn plus a LineFeed.
So ASCII transfer are quite complicated: On HP-UX, setting ASCII transfers will read each record, look for the LF character, then add a CR character. There is no way for ftp to know that the LF character is actually part of a binary string and it should not be modified. The result is that the destination file will always be larger than the original due to the extra CR's thatwere added.
You will see this in the raw file...look for a hex 0a (or octal 12) and you will find an extra hex 0d (octal 015) has been added. If you transfer ASCII files from a PC, you'll see ^M when you run vi at the end of every line. ^M means CTRL-M which is the CR character. Similarly, transferring an ASCII file from HP-UX to a PC will look OK only if you use Word or Wordpad but will have black squares when opened in Notepad. The reason is that Word/Wordpad recognize LF as a 'sfot carriage return' which is a wordprocessing function.
Always use BINARY, even when only a few fields are binary.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 05:45 AM
05-30-2002 05:45 AM
Re: Files not ok after ftp when HP-UX is acceptor
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2002 07:26 AM
05-30-2002 07:26 AM
Re: Files not ok after ftp when HP-UX is acceptor
Rory