HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- expect send statement is including ^M
Operating System - HP-UX
1829582
Members
1678
Online
109992
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
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
07-10-2003 02:38 PM
07-10-2003 02:38 PM
expect send statement is including ^M
greetings,
i'm executing an expect script that spawns an ftp process. when i send a lengthly line of input, it is inserting a ^M, characteristic of how an input line would wrap to fit your screen. does anyone know how to turn this behavior off?
thanks in advance,
chris
i'm executing an expect script that spawns an ftp process. when i send a lengthly line of input, it is inserting a ^M, characteristic of how an input line would wrap to fit your screen. does anyone know how to turn this behavior off?
thanks in advance,
chris
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2003 02:41 PM
07-10-2003 02:41 PM
Re: expect send statement is including ^M
Hi Chris:
No doubt you have transferred the file in *binary* mode. Change the transfer mode to *ascii* and the problem will disappear. Windows systems use a linefeed/carriage-return sequence to denote an end-of-line. Unix uses a newline character (only). The carriage return is the ^M you see.
Regards!
...JRF...
No doubt you have transferred the file in *binary* mode. Change the transfer mode to *ascii* and the problem will disappear. Windows systems use a linefeed/carriage-return sequence to denote an end-of-line. Unix uses a newline character (only). The carriage return is the ^M you see.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2003 04:36 PM
07-10-2003 04:36 PM
Re: expect send statement is including ^M
Yap,change it to ASCII mode.Just type 'a' enoght to change to ascii..
ftp>a
if you have document with ^M , you can do command dos2ux to remove the ^M.
# dos2ux %filename > %newfilename%
regards
mB
ftp>a
if you have document with ^M , you can do command dos2ux to remove the ^M.
# dos2ux %filename > %newfilename%
regards
mB
There are three person in my team-Me ,myself and I.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2003 05:32 PM
07-10-2003 05:32 PM
Re: expect send statement is including ^M
Hi:
this charactor is caused by "enter" action in windows editor.
use ascii mode to transfer file in FTP can avoid this.
Fred
this charactor is caused by "enter" action in windows editor.
use ascii mode to transfer file in FTP can avoid this.
Fred
fred
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