- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Samba Problems
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-14-2004 01:45 AM
05-14-2004 01:45 AM
when i copy a text file windows to HP-UX,
in the file, place ^M the end of the each line.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 02:01 AM
05-14-2004 02:01 AM
Re: Samba Problems
Your text file in Windows has a carriage return and line feed characters at the end of each line, while in Unix the lines are just terminated with line feeds. You'll need to run the 'dos2ux' command to remove the CR characters from your file.
Samba doesn't remove these characters because it is too difficult to figure out when to remove them and when not to.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 02:11 AM
05-14-2004 02:11 AM
Re: Samba Problems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 02:15 AM
05-14-2004 02:15 AM
Re: Samba Problems
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 02:39 AM
05-14-2004 02:39 AM
Re: Samba Problems
Don't exist other option ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 02:45 AM
05-14-2004 02:45 AM
Re: Samba Problems
Simon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2004 02:50 AM
05-14-2004 02:50 AM
SolutionI suppose you could write a script that runs periodically, looks for new files, and runs 'dos2ux' on them.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2004 09:50 AM
05-17-2004 09:50 AM
Re: Samba Problems
--[begin extract]--
Unix text-file lines are terminated by 0A (LF)
MS text-file lines are terminated by 0D 0A (CR LF)
Samba does not do and will not do any conversion of these files at all. There are a number of conversion utilities on both platforms, these will have to be used. Samba 2.0.4 introduced a new document saying this, it vanished again in version 2.2.0.
I saw a Perl-script recently that purported to do the conversion, so if you have access to Perl try:
# cat file.unix | perl -e 'while (<>) {$_ =~s/$/\015/; print$_}' > file.dos
--[end extract]--