[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] Window EOL (\r\n) on submit versus Linux EOL (\n) onclaimed slots



> From: condor-users-bounces@xxxxxxxxxxx [mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of Ian Chesal
> Sent: 23 February 2010 18:32
> To: Condor-Users Mail List
> Subject: Re: [Condor-users] Window EOL (\r\n) on submit versus Linux EOL (\n) onclaimed slots
> 
> Tell them to use a better text editor?
>
> If users are composing scripts on Windows to run on Linux they need an editor that can save with a different line ending format. There's a whole > slew of them out there. Free and not-free. I like notepad++.

If they can't manage this you can always put a wrapper script in the way that checks if the executable is a script, checks for line endings and runs dos2unix on it.

Seems like getting them to understand the difference is more useful though. If you're editing a bash shell script you should edit it in an editor that understands the right line ending.

Matt

----
Gloucester Research Limited believes the information provided herein is reliable. While every care has been taken to ensure accuracy, the information is furnished to the recipients with no warranty as to the completeness and accuracy of its contents and on condition that any errors or omissions shall not be made the basis for any claim, demand or cause for action.
The information in this email is intended only for the named recipient.  If you are not the intended recipient please notify us immediately and do not copy, distribute or take action based on this e-mail.
All messages sent to and from this email address will be logged by Gloucester Research Ltd and are subject to archival storage, monitoring, review and disclosure.
Gloucester Research Limited, 5th Floor, Whittington House, 19-30 Alfred Place, London WC1E 7EA.
Gloucester Research Limited is a company registered in England and Wales with company number 04267560.
----