Operating System - HP-UX
1752753 Members
4574 Online
108789 Solutions
New Discussion юеВ

Re: CIFS -- mounting a windows directory from HP-UX and getting ^M in scripts

 
SOLVED
Go to solution
RobertCarback
Frequent Advisor

CIFS -- mounting a windows directory from HP-UX and getting ^M in scripts

I am trying to install some backup software that is located in a windows folder. I used cifs to mount the folder and when I attempt to run the scripts from the folder (mounted in HP-UX 11.23) there are ^M characters in the scripts (and maybe all files). I had the same issue when I copied the data from the windows folder to HP-UX (using pscp). Is it possible to get cifs or hp-ux to ignore the ^M?
7 REPLIES 7
Tingli
Esteemed Contributor

Re: CIFS -- mounting a windows directory from HP-UX and getting ^M in scripts

RobertCarback
Frequent Advisor

Re: CIFS -- mounting a windows directory from HP-UX and getting ^M in scripts

too much data to dos2ux -- 670MB
OldSchool
Honored Contributor

Re: CIFS -- mounting a windows directory from HP-UX and getting ^M in scripts

i don't believe you can get cifs to ignore the ^M, and I know hpux won't. see bill h's response in the link above.

depending on where / how the software was obtained, downloading it again, or ftp'ing it might fix the issue.

interop of plain-text can be a headache, especially if you intend to create files on one OS and process on the other.
RobertCarback
Frequent Advisor

Re: CIFS -- mounting a windows directory from HP-UX and getting ^M in scripts

So would all files have the ^M or just the ascii files (shell scripts)?
Tingli
Esteemed Contributor
Solution

Re: CIFS -- mounting a windows directory from HP-UX and getting ^M in scripts

Those ^M will be in ascii files only as they have line forward and carriage return.
RobertCarback
Frequent Advisor

Re: CIFS -- mounting a windows directory from HP-UX and getting ^M in scripts

Thanks!
RobertCarback
Frequent Advisor

Re: CIFS -- mounting a windows directory from HP-UX and getting ^M in scripts

thanks