- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: FTP ^M character problem.?? hp-ux 11i
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
Discussions
Discussions
Forums
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
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
тАО03-08-2005 11:34 AM
тАО03-08-2005 11:34 AM
FTP> bin
mput script.sc
After loggin in to the hp-ux server I found that the found filled up with "^M" characters each line.
How to remove this unnecessary characters from the file. Ant script or something can help me.
Thanks in advance ,
Regards,
Raj.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2005 11:41 AM
тАО03-08-2005 11:41 AM
Re: FTP ^M character problem.?? hp-ux 11i
of bin.
FTP> ascii
200 Type set to A.
FTP> put script.sc
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2005 11:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2005 11:55 AM
тАО03-08-2005 11:55 AM
Re: FTP ^M character problem.?? hp-ux 11i
chars, but the core of the problem is that the file
is not transfered properly. ^M is interpreted as
end-of-line char in windows. When you ftp the file
to HP-UX as a binary file, the ^M char is transfered
to HP-UX as is. As ^M is not interpreted in HP-UX
as end-of-line, so it is just displayed as part of the
file. Same must be true for end-of-file char (look at
the end of your file in HP-UX).
The "correct" way to fix this is to tell FTP that the
file type is "ascii" and not "bin" (as shown in my
previous reply in this thread) and it will handle it for
you.
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2005 12:10 PM
тАО03-08-2005 12:10 PM
Re: FTP ^M character problem.?? hp-ux 11i
# dos2ux script.sc > script.sc1
# mv script.sc1 script.sc