Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

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

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 rifling through the Monastery: (7)
As of 2021-05-11 11:33 GMT
Find Nodes?
    Voting Booth?
    Perl 7 will be out ...

    Results (116 votes). Check out past polls.