Ifdh commands » History » Version 22
« Previous -
Version 22/33
(diff) -
Next » -
Current version
Marc Mengel, 05/12/2014 04:55 PM
Latest command help converted to textile
ifdh commands¶
Note that many of these commands are new in ifdh v1_3_x.
Environment variables¶
- IFDH_DEBUG=1 for voluminous debug output
- EXPERIMENT set to an experiment name ("minerva", "nova", etc.)
if it can't be guessed from your group,etc. - IFDH_BASE_URI to pick a particular samweb server.
- IFDH_GRIDFTP_EXTRA, IFDH_SRM_EXTRA, IFDH_DD_EXTRA flags to set options
flor globus-url-copy, lcg_cp, dd, etc. - IFDH_WEB_TIMEOUT for samweb timeouts.
Commands¶
- ifdh cp args[0m
general file copy using cpn locks dd, gridftp, or srmcp
supports:- cp src1 dest1 [';' src2 dest2 [';'...]] -- basic source/dest filenames
* cp
r src1 dest1 [';' src2 dest2 [';'...]] -recursive directory copies * cpD src1 src2 destdir1 [';' src3 src4 destdir2 [';'...]] -copies to dest. directory * cpf file_with_src_space_dest_lines -copies to a list file * any of the above can take --force={cpn,gridftp,srmcp,expgridftp} * any of the file/dest arguments can be URIs
---
- cp src1 dest1 [';' src2 dest2 [';'...]] -- basic source/dest filenames
* cp
- ifdh fetchInput src_uri [0m
get input file to local scratch, return scratch location
- ifdh localPath src_uri [0m
return scratch location fetchInput would give, without copying
- ifdh addOutputFile filename [0m
add output file to set
- ifdh copyBackOutput dest_dir [0m
copy output file set to destination with cpn or srmcp
- ifdh log args[0m
logging
- ifdh enterState state [0m
log entering/leaving states
- ifdh leaveState state [0m
- ifdh createDefinition name dims user group [0m
make a named dataset definition from a dimension string
- ifdh deleteDefinition name [0m
remove data set definition
- ifdh describeDefinition name [0m
describe a named dataset definition
- ifdh translateConstraints dims [0m
give file list for dimension string
- ifdh locateFile name [0m
locate a file
- ifdh getMetadata name [0m
get a files metadata
- ifdh dumpStation name what [0m
give a dump of a SAM station status
- ifdh startProject name station defname_or_id user group [0m
start a new file delivery project
- ifdh findProject name station [0m
find a started project
- ifdh establishProcess projecturi appname appversion location user appfamily description filelimit [0m
set yourself up as a file consumer process for a project
- ifdh getNextFile projecturi processid [0m
get the next file location from a project
- ifdh updateFileStatus projecturi processid filename status [0m
update the file status (use: transferred, skipped, or consumed)
- ifdh endProcess projecturi processid [0m
end the process
- ifdh dumpProject projecturi [0m
say what the sam station knows about your process
- ifdh setStatus projecturi processid status [0m
set process status
- ifdh endProject projecturi [0m
end the project
- ifdh cleanup [0m
clean up any tmp file stuff
- ifdh renameOutput how [0m
give output files reported with addOutputFile a unique name
- ifdh mv args[0m
general file rename using mvn or srmcp
- ifdh ls loc recursion_depth force [0m
Get a list of directory contents, or check existence of files
- ifdh mkdir loc force [0m
make a directory (i.e. for file destination)
- ifdh rm loc force [0m
remove files