[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



I don't recall having such a problem with this but my files were created under cygwin.
I think there may be an option for vi[m] in cygwin that states what format the files
should be in; maybe there is for wordpad of whatever other editor these Windows users
are using.

JK

-----Original Message-----
From: condor-users-bounces@xxxxxxxxxxx on behalf of Ian Cottam
Sent: Tue 23/02/2010 09:23
To: Condor-Users Mail List
Subject: [Condor-users] Window EOL (\r\n) on submit versus Linux EOL (\n) onclaimed slots
 
Hi all,

  I know I could write a script --and probably will-- but what is the 
recommended approach for end-of-line conversions between operating 
systems in a mixed pool?

I have several users who compose jobs on their Windows desktops but 
expect them to run under Linux/X86_64. They are calling various 
applications from Bash shell scripts. They fail straight away because 
the first line
#!/bin/bash
is seen by Linux as
#!/bin/bash\r
and Linux says no such interpreter.

Once you get over this bit (i.e. you delete all the \r chars in the 
submit script) things aren't too bad as the submitter can use dos2unix 
to convert other files from the submitted Bash script.

I guess the other direction exists too, but is likely much rarer.
Thanks for any comments,
-Ian













-- 
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]


_______________________________________________
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/


-- 
Scanned by iCritical.

<<winmail.dat>>