swif2 output

Specify an output from within a swif job.

Usage

swif2 output <local-path> <remote-path>

Specify an output file from within a running swif job. This command does not take a workflow argument because it is inferred from the runtime environment of the swif job from which it is run. <local-path> and <remote-path> are interpreted exactly as though they had been specified via swif2 add-job ... -output. This means that <local-path> is interpreted relative to the job's working directory on its compute node, and must not start with / or ./. However, if the source file resides on a central filesystem such as /volatile, then it must be specified as an absolute path.

Note that this command is implemented by an automatically generated script that is placed in the $PATH environment variable prior to running user job code. If your script overwrites $PATH, as opposed to simply modifying it, then this script will not be available within your job.

Also note that the swif2 command that is available to running jobs does not implement any of the other swif commands.

Examples

Copy a file named job.out in the job's working directory to a file named /volatile/halle/myoutput.out

swif2 output job.out /volatile/halle/myoutput.out

Copy all files in the subdirectory results to tape with detination directory /mss/halle/outdir

swif2 output 'match:results/*' mss:/mss/halle/outdir

Copy a file from /volatile to /cache

swif2 output /volatile/halle/blah /cache/halle/blah