[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



Thanks Matt, and others who replied.

I'm now using a wrapper to check for a shell script executable with \r chars in it (and drop them --the \r's-- before the script gets submitted).

I'm not entirely sure users (who only know a little Linux for Condor HTC purposes) should have to be completely aware of cross-OS EOL silliness, if we can protect them from it to some extent. These particular users would much prefer a Windows Pool to run their packages of choice, but, sadly, it isn't.

Of course, they still need to know enough to stick dos2unix commands in the script for any input text files. (I'm not sure such could be automated without running the risk of 'converting' binary input files too.)

cheers -Ian


Matt Hope wrote:
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.
----

_______________________________________________
Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/condor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/condor-users/

--
Ian Cottam
Information Systems Manager
Manchester Interdisciplinary Biocentre &
School of Materials &
School of Chemical Engineering and Analytical Science (Room C24)
The John Garside Building (Room G.002)
The University of Manchester
e: ian.cottam@xxxxxxxxxxxxxxxx
t: 0161 306 5198
m: 07856 849831
http://personalpages.manchester.ac.uk/staff/Ian.Cottam
[Giving a talk in MIB? Upload it: http://ic.mib.man.ac.uk/mibtheatre.php]