Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Problems? Is your data what you think it is?
 
PerlMonks  

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.


--
Regards,
Helgi Briem
hbriem AT f-prot DOT com


Comment on Re: (OT) Fixing Line Endings
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.


      --
      Regards,
      Helgi Briem
      hbriem AT f-prot DOT com

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2014-04-18 06:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (462 votes), past polls