Is there any way to get Samba to convert text files like FTP does? I searched everywhere in the online documentation for a way to specify file extensions to convert, but found nothing. If I drag and drop a text file from my Windows machine to a Samba share, I would like Samba to convert the end-of-line characters to the Linux format. John Gaughan http://www.johngaughan.net/ john@johngaughan.net ICQ: 5187759 AIM: SnowmanJTG Yahoo: john23874
Samba doesn't do this for you. There is software out there that gives you drag and drop conversion from windows to linux/unix text formatting, and some of it is free. But, it is so easy to do, cat file | sed 's/\x0d$//', why bother? To go back, cat file | sed 's/^.*$/&\x0D/' This takes a newer version of sed. Joel> Is there any way to get Samba to convert text files like FTP does? I > searched everywhere in the online documentation for a way to specify file > extensions to convert, but found nothing. > > If I drag and drop a text file from my Windows machine to a Samba share, I > would like Samba to convert the end-of-line characters to the Linux format.
Charles, The reason you got this type of answer, partially, is because this topic has been discussed <to death> on this list several times. You might want to take a look at the searchable archives for the samba lists, and see what was decided and why, and other suggestions for your issue. Hope this helps, Don -----Original Message----- From: Charles Marcus [mailto:CharlesM@Media-Brokers.com] Sent: Monday, October 15, 2001 11:45 AM To: samba@lists.samba.org Subject: RE: Text Conversion Joel, Not everyone is a programmer, and if there is a way to do this automatically when the files are copied, so much the better, even if you are a programmer. Man, answers like that really gripe me sometimes. On the flipside, thans for the scripts - Charles -----Original Message----- From: samba-admin@lists.samba.org [mailto:samba-admin@lists.samba.org]On Behalf Of Joel Hammer Sent: Sunday, October 14, 2001 1:24 PM To: John Gaughan; samba@lists.samba.org Subject: Re: Text Conversion Samba doesn't do this for you. There is software out there that gives you drag and drop conversion from windows to linux/unix text formatting, and some of it is free. But, it is so easy to do, cat file | sed 's/\x0d$//', why bother? To go back, cat file | sed 's/^.*$/&\x0D/' This takes a newer version of sed. Joel> Is there any way to get Samba to convert text files like FTP does? I > searched everywhere in the online documentation for a way to specify file > extensions to convert, but found nothing. > > If I drag and drop a text file from my Windows machine to a Samba share, I > would like Samba to convert the end-of-line characters to the Linuxformat. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Hi John, Sorry you're having so much trouble. You can find a lot of messages on this topic by clicking on the url below: http://marc.theaimsgroup.com/?l=samba&w=2&r=1&s=crlf&q=b hope this helps, Don -----Original Message----- From: John Gaughan [mailto:john7059@home.com] Sent: Monday, October 15, 2001 6:09 PM To: Samba Subject: Re: Text Conversion I did search the archives (I posted the original message) and didn't come up with anything. That's why I asked. Sorry for asking, I guess I'll just leave the list and shut up now. And if I have any more problems, oh well. The Linux community has proven to me time and time again they don't have the customer service skills or the time and patience to help people that don't know any better. I am no newbie, I've been using Linux for several years now, but I am tired of being treated like one whenever I forage into an area of the operating system or applications (like Samba, which I never had a need to use until now). Looks like I'll be using the glue that holds the rest of my server together: Perl. When all else fails, add another piece of duct tape to the pile! :-) At 11:30 AM 10/15/2001 -0700, you wrote:>Charles, >The reason you got this type of answer, partially, is because >this topic has been discussed <to death> on this list several >times. You might want to take a look at the searchable archives >for the samba lists, and see what was decided and why, and other >suggestions for your issue. >Hope this helps, >Don > >-----Original Message----- >From: Charles Marcus [mailto:CharlesM@Media-Brokers.com] >Sent: Monday, October 15, 2001 11:45 AM >To: samba@lists.samba.org >Subject: RE: Text Conversion > > >Joel, > >Not everyone is a programmer, and if there is a way to do thisautomatically>when the files are copied, so much the better, even if you are aprogrammer.> >Man, answers like that really gripe me sometimes. > >On the flipside, thans for the scripts - > >Charles > >-----Original Message----- >From: samba-admin@lists.samba.org [mailto:samba-admin@lists.samba.org]On >Behalf Of Joel Hammer >Sent: Sunday, October 14, 2001 1:24 PM >To: John Gaughan; samba@lists.samba.org >Subject: Re: Text Conversion > > >Samba doesn't do this for you. >There is software out there that gives you drag and drop conversion from >windows to linux/unix text formatting, and some of it is free. >But, it is so easy to do, cat file | sed 's/\x0d$//', why bother? >To go back, cat file | sed 's/^.*$/&\x0D/' >This takes a newer version of sed. >Joel > > > Is there any way to get Samba to convert text files like FTP does? I > > searched everywhere in the online documentation for a way to specifyfile> > extensions to convert, but found nothing. > > > > If I drag and drop a text file from my Windows machine to a Samba share,I> > would like Samba to convert the end-of-line characters to the Linux >format. > >-- >To unsubscribe from this list go to the following URL and read the >instructions: http://lists.samba.org/mailman/listinfo/samba > > > >-- >To unsubscribe from this list go to the following URL and read the >instructions: http://lists.samba.org/mailman/listinfo/samba > >-- >To unsubscribe from this list go to the following URL and read the >instructions: http://lists.samba.org/mailman/listinfo/samba-- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
As with most Samba users, I am also very interested in this topic.
Hi, Sorry for the late response. If you are still interested... There is an even easier way then that. Checkout "dos2unix" and "unix2dos". example: dos2unix <dos_filename> <unix_filename> & unix2dos <unix_filename> <dos_filename> Hope that helps, Arnold Andrews> Delivered-To: samba@lists.samba.org > From: Joel Hammer <jhammer2@home.com> > To: John Gaughan <john7059@home.com>, samba@lists.samba.org > Subject: Re: Text Conversion > Mime-Version: 1.0 > Content-Disposition: inline > User-Agent: Mutt/1.2.5i > X-BeenThere: samba@lists.samba.org > X-Mailman-Version: 2.0.6 > List-Help: <mailto:samba-request@lists.samba.org?subject=help> > List-Post: <mailto:samba@lists.samba.org> > List-Subscribe: <http://lists.samba.org/mailman/listinfo/samba>,<mailto:samba-request@lists.samba.org?subject=subscribe>> List-Id: General questions regarding Samba <samba.lists.samba.org> > List-Unsubscribe: <http://lists.samba.org/mailman/listinfo/samba>,<mailto:samba-request@lists.samba.org?subject=unsubscribe>> List-Archive: <http://lists.samba.org/pipermail/samba/> > X-Original-Date: Sun, 14 Oct 2001 13:24:21 -0400 > Date: Sun, 14 Oct 2001 13:24:21 -0400 > > Samba doesn't do this for you. > There is software out there that gives you drag and drop conversion from > windows to linux/unix text formatting, and some of it is free. > But, it is so easy to do, cat file | sed 's/\x0d$//', why bother? > To go back, cat file | sed 's/^.*$/&\x0D/' > This takes a newer version of sed. > Joel > > > Is there any way to get Samba to convert text files like FTP does? I > > searched everywhere in the online documentation for a way to specify file > > extensions to convert, but found nothing. > > > > If I drag and drop a text file from my Windows machine to a Samba share, I > > would like Samba to convert the end-of-line characters to the Linux format. > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba