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

Re: [Condor-users] Where does POST script run from in DAG?




On 2/5/10 10:27 AM, R. Kent Wenger wrote:
>> JOB         3ebr-00003 3ebr-00003.ca
>> SCRIPT POST 3ebr-00003 ./extract_output 3ebr-00003.output.zip
>>
>> where "extract_output" is a script in the same directory as the classad,
>> and the same directory where the condor_submit_dag command is executed
>> from, however my log file reports:
>>
>> 02/04 16:25:28 Running POST script of Node 3ebr-00003...
>> 02/04 16:25:28 Create_Process(./extract_output): child failed with errno
>> 8 (Exec format error) before exec()02/04 16:25:28   error:
>> daemonCore->Create_Process() failed; POST script of Job 3ebr-00003
>> failed
>> 02/04 16:25:28 POST Script of Node 3ebr-00003 failed with status 1
>
> This doesn't seem like a problem with the directory -- DAGMan found the
> POST script executable, but it wouldn't run.  What happens if you just
> run "./extract_output 3ebr-00003.output.zip" directly on the command
> line?

It works fine.  I've just figured out the problem.  The script did not
contain "#!/bin/bash".  This works fine from the command line, but not
from exec, for obvious reasons.  Once it is included, the script works
as part of the DAG.

Thanks for the feedback.

Ian

-- 
Ian Stokes-Rees, PhD                       W: http://hkl.hms.harvard.edu
ijstokes@xxxxxxxxxxxxxxxxxxx               T: +1 617 432-5608 x75
NEBioGrid, Harvard Medical School          C: +1 617 331-5993


begin:vcard
fn:Ian Stokes-Rees, PhD
n:Stokes-Rees;Ian
org:Harvard Medical School;Biological Chemistry and Molecular Pharmacology
adr:;;250 Longwood Ave;Boston;MA;02115;USA
email;internet:ijstokes@xxxxxxxxxxxxxxxxxxx
title:Research Associate, Sliz Lab
tel;work:+1.617.432.5608 x75
tel;fax:+1.617.432.0000
tel;cell:+1.617.331.5993
url:http://hkl.hms.harvard.edu
version:2.1
end:vcard