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

Re: [Condor-users] Condor 7.2.3 unable to execute a Linux shell script from Windows



as a dirty hack what happens if you change the script file to have the name test.bat?

-----Original Message-----
From: condor-users-bounces@xxxxxxxxxxx [mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of Andrew Cunningham
Sent: 29 October 2009 02:22
To: condor-users@xxxxxxxxxxx
Subject: [Condor-users] Condor 7.2.3 unable to execute a Linux shell script from Windows

We recently upgraded to 7.2.3 from the 6.8.x series and something that  
used to work has stopped working...
We are submitting simple shell scripts from Windows workstations to  
execute on Linux.

For example, a simple Test.sub file might be

universe     = vanilla
Executable   = Test.sh
log          = Test.log
output       = Test.out
error        = Test.err
queue

Test.sh is ( yes, it is in UNIX LF format)

#!/bin/sh
echo This is Test.sh
date

If I condor_submit this from Windows I get...

10/28 18:49:57 Submitting machine is "CARDIFF.mydomain.com"
10/28 18:49:57 setting the orig job name in starter
10/28 18:49:57 setting the orig job iwd in starter
10/28 18:49:57 File transfer completed successfully.
10/28 18:49:58 warning: unable to chmod condor_exec.exe to ensure  
execute bit is set: Operation not permitted
10/28 18:49:58 Job 667.0 set to execute immediately
10/28 18:49:58 Starting a VANILLA universe job with ID: 667.0
10/28 18:49:58 IWD: /opt/condor-7.2.3/local.perth/execute/dir_6701
10/28 18:49:58 Output file: /opt/condor-7.2.3/local.perth/execute/ 
dir_6701/Test.out
10/28 18:49:58 Error file: /opt/condor-7.2.3/local.perth/execute/ 
dir_6701/Test.err
10/28 18:49:58 About to exec /opt/condor-7.2.3/local.perth/execute/ 
dir_6701/condor_exec.exe
10/28 18:49:58 Create_Process: Cannot access specified executable "/ 
opt/condor-7.2.3/local.perth/execute/dir_6701/condor_exec.exe": errno  
= 13 (Permission denied)
10/28 18:49:58 ERROR "Create_Process(/opt/condor-7.2.3/local.perth/ 
execute/dir_6701/condor_exec.exe,, ...) failed" at line 508 in file  
os_proc.cpp

If I submit from the Linux machine I get....
10/28 18:55:51 Submitting machine is "perth.mydomain.com"
10/28 18:55:51 setting the orig job name in starter
10/28 18:55:51 setting the orig job iwd in starter
10/28 18:55:51 Job 10.0 set to execute immediately
10/28 18:55:51 Starting a VANILLA universe job with ID: 10.0
10/28 18:55:51 IWD: /home/andrewc/Temp
10/28 18:55:51 Output file: /home/andrewc/Temp/Test.out
10/28 18:55:51 Error file: /home/andrewc/Temp/Test.err
10/28 18:55:51 About to exec /home/andrewc/Temp/Test.sh
10/28 18:55:52 Create_Process succeeded, pid=6714


Completely baffled.....

Andrew

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

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