Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^4: (OT) Fixing Line Endings

by cLive ;-) (Parson)
on Nov 30, 2006 at 16:49 UTC ( #587004=note: print w/replies, xml ) Need Help??

in reply to Re^3: (OT) Fixing Line Endings
in thread (OT) Fixing Line Endings

Then don't alter the files, just add a check like this as an upload hook:

$file_content =~ m|^#!(/usr/[\w\/]*)\s*\r\n|s and -e $1 and `ln -s $1 $1\\r`;

(untested). Then only the link gets created on upload, and the original file is untouched.

We use pure FTP now after having big problems with ProFTPd (I forget what they were now). It's login/upload hooks are easy to use, and the overhead is pretty trivial.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2016-10-28 22:18 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (387 votes). Check out past polls.