HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Ftp transfer corrupts script by adding ctrl-m char...
Operating System - HP-UX
1835228
Members
7687
Online
110078
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
02-12-2001 02:22 AM
02-12-2001 02:22 AM
I have downloadet a script from HP Resource Center (a patch PHCO_17318) to my Win2000 pc.
The script was then copied to a HP9000 K859 server running HP-UX B11.00 A, via ftp 'put' command in binery mode.
However the script cannot run, because a ^M (ctrl-M) was added to the end of each line in the file. This shows in the vi editor.
How can the adding of the ^M (ctrl-M) characters be avoidet?
Your help/hints is much appreciated.
The script was then copied to a HP9000 K859 server running HP-UX B11.00 A, via ftp 'put' command in binery mode.
However the script cannot run, because a ^M (ctrl-M) was added to the end of each line in the file. This shows in the vi editor.
How can the adding of the ^M (ctrl-M) characters be avoidet?
Your help/hints is much appreciated.
Why take your-/myself so seriously?
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2001 02:25 AM
02-12-2001 02:25 AM
Re: Ftp transfer corrupts script by adding ctrl-m characters to end of every line.
Hi,
This happened because you didn't set your ftp in 'binary' mode.
On a PC, all lines end with the pair while you only have linefeed on unix.
You may use the 'dos2unix' command to convert your file or, with vi:
:1,$s///
Best regards,
Dan
This happened because you didn't set your ftp in 'binary' mode.
On a PC, all lines end with the pair
You may use the 'dos2unix' command to convert your file or, with vi:
:1,$s/
Best regards,
Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2001 02:27 AM
02-12-2001 02:27 AM
Solution
Correction,
If the file was saved on a PC, you should use the 'ASCII' mode as this will convert CR-LF pairs to LF.
Dan
If the file was saved on a PC, you should use the 'ASCII' mode as this will convert CR-LF pairs to LF.
Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP