Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: (OT) Fixing Line Endings

by helgi (Hermit)
on Dec 01, 2006 at 09:09 UTC ( #587144=note: print w/ replies, xml ) Need Help??

in reply to (OT) Fixing Line Endings

I've come across this problem or variants of it, literally hundreds of times.

Most recently, here at work we were trying to get a packaged java solution to work on a Linux box. The shell script containing the java command wouldn't work, giving us "library not found" errors, but the command pasted to the command line, worked just fine.

I'm ashamed to say that it took me a while to realise that the \r was to blame since I'd only encountered it before in a perl context. dos2unix solved the problem of course.

In a previous job we used to run a cron job that dos2unix'ed everything in certain directories and if changes were made, e-mailed the owner/programmer that his script had been fixed.

Helgi Briem
hbriem AT f-prot DOT com
Comment on Re: (OT) Fixing Line Endings
Replies are listed 'Best First'.
Re^2: (OT) Fixing Line Endings
by Ovid (Cardinal) on Dec 01, 2006 at 11:46 UTC
      Yup. That's how I ran into you.

      Helgi Briem
      hbriem AT f-prot DOT com

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://587144]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (11)
As of 2016-05-25 18:31 GMT
Find Nodes?
    Voting Booth?