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

[HTCondor-users] Change the HOME directory using wrapper script

Hello Team,

We have simple wrapper to change the HOME but sometimes job fails with the following error:

$ cd /apps/ttech/vaggarwal/sleepjob
$ cat sleep.sub
executable = sleep.sh
should_transfer_files  = Yes
log = sleepjob.log
request_cpus = 1
queue 1
$ condor_submit sleep.sub

Error from slot1_2@testmachine: Failed to execute '/usr/local/bin/condor_wrapper.sh' with arguments /apps/ttech/vaggarwal/sleepjob/sleep.sh: Cannot access initial working directory "/apps/ttech/vaggarwal" (errno=2: 'No such file or directory')

This is not observed every-time.Â

USER_JOB_WRAPPER: /usr/local/bin/condor_wrapper.sh

export HOME=/spare/tmp/`whoami`
[ -d "$HOME" ] || mkdir "$HOME" >/dev/null
exec "$@"

Any suggestion on changing the HOME without breaking anything will be highly appreciated.

Thanks & Regards,
Vikrant Aggarwal