condor_chirp(1) | General Commands Manual | condor_chirp(1) |
condor_chirp Access - files or job ClassAd from an executing job
condor_chirp <Chirp-Command>
condor_chirp is not intended for use as a command-line tool. It is most often invoked by an HTCondor job, while the job is executing. It accesses files or job ClassAd attributes on the submit machine. Files can be read, written or removed. Job attributes can be read, and most attributes can be updated.
When invoked by an HTCondor job, the command-line arguments describe the operation to be performed. Each of these arguments is described below within the section on Chirp Commands. Descriptions using the terms localand remoteare given from the point of view of the executing job.
If the input file name for putor writeis a dash, condor_chirpuses standard input as the source. If the output file name for fetchis a dash, condor_chirpwrites to standard output instead of a local file.
Jobs that use condor_chirpmust have the attribute WantIOProxyset to Truein the job ClassAd. To do this, place
+WantIOProxy = true
in the submit description file of the job.
condor_chirponly works for jobs run in the vanilla, parallel and java universes.
fetch RemoteFileName LocalFileName
put[-mode mode] [-perm UnixPerm] LocalFileNameRemoteFileName
remove RemoteFileName
get_job_attr JobAttributeName
set_job_attr JobAttributeName AttributeValue
get_job_attr_delayed JobAttributeName
set_job_attr_delayed JobAttributeName AttributeValue
ulog Message
read[-offset offset] [-stride length skip] RemoteFileNameLength
write[-offset offset] [-stride length skip] RemoteFileNameLocalFileName[numbytes]
rmdir[-r] RemotePath
getdir[-l] RemotePath
whoami
whoareyou RemoteHost
link[-s] OldRemotePathNewRemotePath
readlink RemoteFileName
stat RemotePath
lstat RemotePath
statfs RemotePath
access RemotePath Mode
chmod RemotePath UnixPerm
chown RemotePath UID GID
chown RemotePath UID GID
truncate RemoteFileName Length
utime RemotePath AccessTime ModifyTime
To copy a file from the submit machine to the execute machine while the user job is running, run
condor_chirp fetch remotefile localfile
To print to standard output the value of the Requirementsexpression from within a running job, run
condor_chirp get_job_attr Requirements
Note that the remote (submit-side) directory path is relative to the submit directory, and the local (execute-side) directory is relative to the current directory of the running program.
To append the word "foo" to a file called RemoteFileon the submit machine, run
echo foo | condor_chirp put -mode wa - RemoteFile
To append the message "Hello World" to the job event log, run
condor_chirp ulog "Hello World"
condor_chirpwill exit with a status value of 0 (zero) upon success, and it will exit with the value 1 (one) upon failure.
Center for High Throughput Computing, University of Wisconsin-Madison
Copyright (C) 1990-2016 Center for High Throughput Computing, Computer Sciences Department, University of Wisconsin-Madison, Madison, WI. All Rights Reserved. Licensed under the Apache License, Version 2.0.
May 2022 |