.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "CONDOR_RUN" "1" "Apr 01, 2024" "" "HTCondor Manual" .SH NAME condor_run \- HTCondor Manual .sp Submit a shell command\-line as an HTCondor job .SH SYNOPSIS .sp \fBcondor_run\fP [\fB\-u\fP \fIuniverse\fP] [\fB\-a\fP \fIsubmitcmd\fP] \fI\(dqshell command\(dq\fP .SH DESCRIPTION .sp \fIcondor_run\fP bundles a shell command line into an HTCondor job and submits the job. The \fIcondor_run\fP command waits for the HTCondor job to complete, writes the job\(aqs output to the terminal, and exits with the exit status of the HTCondor job. No output appears until the job completes. .sp Enclose the shell command line in double quote marks, so it may be passed to \fIcondor_run\fP without modification. \fIcondor_run\fP will not read input from the terminal while the job executes. If the shell command line requires input, redirect the input from a file, as illustrated by the example .INDENT 0.0 .INDENT 3.5 .sp .EX $ condor_run \(dqmyprog < input.data\(dq .EE .UNINDENT .UNINDENT .sp \fIcondor_run\fP jobs rely on a shared file system for access to any necessary input files. The current working directory of the job must be accessible to the machine within the HTCondor pool where the job runs. .sp Specialized environment variables may be used to specify requirements for the machine where the job may run. .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .TP .B CONDOR_ARCH Specifies the architecture of the required platform. Values will be the same as the \fBArch\fP machine ClassAd attribute. .TP .B CONDOR_OPSYS Specifies the operating system of the required platform. Values will be the same as the \fBOpSys\fP machine ClassAd attribute. .TP .B CONDOR_REQUIREMENTS Specifies any additional requirements for the HTCondor job. It is recommended that the value defined for \fBCONDOR_REQUIREMENTS\fP be enclosed in parenthesis. .UNINDENT .UNINDENT .UNINDENT .sp When one or more of these environment variables is specified, the job is submitted with: .INDENT 0.0 .INDENT 3.5 .sp .EX Requirements = $CONDOR_REQUIREMENTS && Arch == $CONDOR_ARCH && OpSys == $CONDOR_OPSYS .EE .UNINDENT .UNINDENT .sp Without these environment variables, the job receives the default requirements expression, which requests a machine of the same platform as the machine on which \fIcondor_run\fP is executed. .sp All environment variables set when \fIcondor_run\fP is executed will be included in the environment of the HTCondor job. .sp \fIcondor_run\fP removes the HTCondor job from the queue and deletes its temporary files, if \fIcondor_run\fP is killed before the HTCondor job completes. .SH OPTIONS .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .TP \fB\-u\fP \fIuniverse\fP Submit the job under the specified universe. The default is vanilla. While any universe may be specified, only the vanilla, scheduler, and local universes result in a submit description file that may work properly. .TP \fB\-a\fP \fIsubmitcmd\fP Add the specified submit command to the implied submit description file for the job. To include spaces within \fIsubmitcmd\fP, enclose the submit command in double quote marks. And, to include double quote marks within \fIsubmitcmd\fP, enclose the submit command in single quote marks. .UNINDENT .UNINDENT .UNINDENT .SH EXAMPLES .sp \fIcondor_run\fP may be used to compile an executable on a different platform. As an example, first set the environment variables for the required platform: .INDENT 0.0 .INDENT 3.5 .sp .EX $ export CONDOR_ARCH=\(dqSUN4u\(dq $ export CONDOR_OPSYS=\(dqSOLARIS28\(dq .EE .UNINDENT .UNINDENT .sp Then, use \fIcondor_run\fP to submit the compilation as in the following two examples. .INDENT 0.0 .INDENT 3.5 .sp .EX $ condor_run \(dqf77 \-O \-o myprog myprog.f\(dq .EE .UNINDENT .UNINDENT .sp or .INDENT 0.0 .INDENT 3.5 .sp .EX $ condor_run \(dqmake\(dq .EE .UNINDENT .UNINDENT .SH FILES .sp \fIcondor_run\fP creates the following temporary files in the user\(aqs working directory. The placeholder is replaced by the process id of \fIcondor_run\fP\&. .INDENT 0.0 .TP .B \fB\&.condor_run.\fP A shell script containing the shell command line. .TP .B \fB\&.condor_submit.\fP The submit description file for the job. .TP .B \fB\&.condor_log.\fP The HTCondor job\(aqs log file; it is monitored by \fIcondor_run\fP, to determine when the job exits. .TP .B \fB\&.condor_out.\fP The output of the HTCondor job before it is output to the terminal. .TP .B \fB\&.condor_error.\fP Any error messages for the HTCondor job before they are output to the terminal. .UNINDENT .sp \fIcondor_run\fP removes these files when the job completes. However, if \fIcondor_run\fP fails, it is possible that these files will remain in the user\(aqs working directory, and the HTCondor job may remain in the queue. .SH GENERAL REMARKS .sp \fIcondor_run\fP is intended for submitting simple shell command lines to HTCondor. It does not provide the full functionality of \fIcondor_submit\fP\&. Therefore, some \fIcondor_submit\fP errors and system failures may not be handled correctly. .sp All processes specified within the single shell command line will be executed on the single machine matched with the job. HTCondor will not distribute multiple processes of a command line pipe across multiple machines. .sp \fIcondor_run\fP will use the shell specified in the \fBSHELL\fP environment variable, if one exists. Otherwise, it will use \fI/bin/sh\fP to execute the shell command\-line. .sp By default, \fIcondor_run\fP expects Perl to be installed in \fB/usr/bin/perl\fP\&. If Perl is installed in another path, ask the Condor administrator to edit the path in the \fIcondor_run\fP script, or explicitly call Perl from the command line: .INDENT 0.0 .INDENT 3.5 .sp .EX $ perl path\-to\-condor/bin/condor_run \(dqshell\-cmd\(dq .EE .UNINDENT .UNINDENT .SH EXIT STATUS .sp \fIcondor_run\fP exits with a status value of 0 (zero) upon complete success. The exit status of \fIcondor_run\fP will be non\-zero upon failure. The exit status in the case of a single error due to a system call will be the error number (\fBerrno\fP) of the failed call. .SH AUTHOR HTCondor Team .SH COPYRIGHT 1990-2024, Center for High Throughput Computing, Computer Sciences Department, University of Wisconsin-Madison, Madison, WI, US. Licensed under the Apache License, Version 2.0. .\" Generated by docutils manpage writer. .