- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- setting SAMBA to ascii
Operating System - HP-UX
1820602
Members
1746
Online
109626
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
Discussions
Discussions
Discussions
Forums
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
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
тАО08-08-2002 12:17 AM
тАО08-08-2002 12:17 AM
setting SAMBA to ascii
Hi everyone,
I have samba installed on my machines, however in a lot of cases the text files my users are transferring seem to be transferred in binary mode.
Does anyone know if there is a way i can set the transfer of these files to ascii mode.
At the moment this would be a good solution if the files samba transferred got to their destination in the same format as they came from.
cheers,
mark.
I have samba installed on my machines, however in a lot of cases the text files my users are transferring seem to be transferred in binary mode.
Does anyone know if there is a way i can set the transfer of these files to ascii mode.
At the moment this would be a good solution if the files samba transferred got to their destination in the same format as they came from.
cheers,
mark.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2002 02:46 AM
тАО08-08-2002 02:46 AM
Re: setting SAMBA to ascii
Hi Mark,
Samba is intended to act similarly to network shares from Windows machines, in that files are transfered in binary.
Am I right in thinking that you want some kind of dos2ux conversion on the files? If so, you will need to do this manually as I'm not aware of this functionality within Samba. There are a number of other threads on this forum discussing the differences between text files on HP-UX and on Windows/DOS machines.
Perhaps you could give us some examples of what you're seeing and what you're expecting to see in your files.
regards,
Darren.
Samba is intended to act similarly to network shares from Windows machines, in that files are transfered in binary.
Am I right in thinking that you want some kind of dos2ux conversion on the files? If so, you will need to do this manually as I'm not aware of this functionality within Samba. There are a number of other threads on this forum discussing the differences between text files on HP-UX and on Windows/DOS machines.
Perhaps you could give us some examples of what you're seeing and what you're expecting to see in your files.
regards,
Darren.
Calm down. It's only ones and zeros...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2002 06:58 AM
тАО08-13-2002 06:58 AM
Re: setting SAMBA to ascii
Hi, I have a similar issue that I had to solve with dos2ux program.
We use PVCS on a Windows server to store Unix shell scripts, Oracle SQL scripts, etc. The only way to move files between is FTP or Samba--we chose Samba as more "secure" than FTP with a user/password hanging out for all to see.
The Windows "copy" command is binary, so I had to convert the files. I chose to convert on the Windows platform as I had control of the script and actions via an awk script.
If you choose to do the same, the attached source compiled with any Windows compiler will do the trick.
We use PVCS on a Windows server to store Unix shell scripts, Oracle SQL scripts, etc. The only way to move files between is FTP or Samba--we chose Samba as more "secure" than FTP with a user/password hanging out for all to see.
The Windows "copy" command is binary, so I had to convert the files. I chose to convert on the Windows platform as I had control of the script and actions via an awk script.
If you choose to do the same, the attached source compiled with any Windows compiler will do the trick.
Stuff happens...that's why Jesus saves.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2002 08:34 AM
тАО08-13-2002 08:34 AM
Re: setting SAMBA to ascii
SAMBA is not like ftp where you have options to control transferring a file. In fact, SAMBA doesn't transfer files at all! It is a remote filesystem, just like NFS so what you see on the PC share (or what PC sees on the HP-UX share) is exactly what exists. Unix and PC-windows filesystems are quite unrelated so you can always expect difficulties. If SAMBA were to translate ASCII files, how would SAMBA know the file was ASCII? SAMBA interfaces with the filesystem directories and opens the file as if it were local. Not even HP-UX knows whether a file is in ASCII format or not.
So you may want to rethink the use of SAMBA. If what you want is to quickly transfer the files between the systems, a batch FTP script is the way to go. If you want to edit the files on a different machine, users must ALWAYS be aware of the differences between Unix and DOS.
Bill Hassell, sysadmin
So you may want to rethink the use of SAMBA. If what you want is to quickly transfer the files between the systems, a batch FTP script is the way to go. If you want to edit the files on a different machine, users must ALWAYS be aware of the differences between Unix and DOS.
Bill Hassell, sysadmin
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
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP