.\" 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_QSUB" "1" "Apr 01, 2024" "" "HTCondor Manual" .SH NAME condor_qsub \- HTCondor Manual .sp Queue jobs that use PBS/SGE\-style submission .SH SYNOPSIS .sp \fBcondor_qsub\fP [\-\-\fBversion\fP] .sp \fBcondor_qsub\fP [\fBSpecific options\fP ] [\fBDirectory options\fP ] [\fBEnvironmental options\fP ] [\fBFile options\fP ] [\fBNotification options\fP ] [\fBResource options\fP ] [\fBStatus options\fP ] [\fBSubmission options\fP ] \fIcommandfile\fP .SH DESCRIPTION .sp \fIcondor_qsub\fP submits an HTCondor job. This job is specified in a PBS/Torque style or an SGE style. \fIcondor_qsub\fP permits the submission of dependent jobs without the need to specify the full dependency graph at submission time. Doing things this way is neither as efficient as HTCondor\(aqs DAGMan, nor as functional as SGE\(aqs \fIqsub\fP or \fIqalter\fP\&. \fIcondor_qsub\fP serves as a minimal translator to be able to use software originally written to interact with PBS, Torque, and SGE in an HTCondor pool. .sp \fIcondor_qsub\fP attempts to behave like \fIqsub\fP\&. Less than half of the \fIqsub\fP functionality is implemented. Option descriptions describe the differences between the behavior of \fIqsub\fP and \fIcondor_qsub\fP\&. \fIqsub\fP options not listed here are not supported. Some concepts present in PBS and SGE do not apply to HTCondor, and so these options are not implemented. .sp For a full listing of \fIqsub\fP options, please see .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .TP .B POSIX : \fI\%http://pubs.opengroup.org/onlinepubs/9699919799/utilities/qsub.html\fP .TP .B SGE : \fI\%http://gridscheduler.sourceforge.net/htmlman/htmlman1/qsub.html\fP .TP .B PBS/Torque : \fI\%http://docs.adaptivecomputing.com/torque/4\-1\-3/Content/topics/commands/qsub.htm\fP .UNINDENT .UNINDENT .UNINDENT .sp \fIcondor_qsub\fP accepts either command line options or the single file, \fIcommandfile\fP, that contains all of the commands. .sp \fIcondor_qsub\fP does the opposite of job submission within the \fBgrid\fP universe \fBbatch\fP grid type, which takes HTCondor jobs submitted with HTCondor syntax and submits them to PBS, SGE, or LSF. .SH OPTIONS .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .TP \fB\-a\fP \fIdate_time\fP (Submission option) Specify a deferred execution date and time. The PBS/Torque syntax of \fIdate_time\fP is a string in the form \fI[[[[CC]YY]MM]DD]hhmm[.SS]\fP\&. The portions of this string which are optional are \fICC\fP, \fIYY\fP, \fIMM\fP, \fIDD\fP, and \fISS\fP\&. For SGE, \fIMM\fP and \fIDD\fP are not optional. For PBS, \fIMM\fP and \fIDD\fP are optional. \fIcondor_qsub\fP follows the PBS style. .TP \fB\-A\fP \fIaccount_string\fP (Status option) Uses group accounting where the string \fIaccount_string\fP is the accounting group associated with this job. Unlike SGE, there is no default group of \fB\(dqsge\(dq\fP\&. .TP \fB\-b\fP \fIy|n\fP (Submission option) Using the SGE definition of its \fI\-b\fP option, a value of \fIy\fP causes \fIcondor_qsub\fP to not parse the file for additional \fIcondor_qsub\fP commands. The default value is \fIn\fP\&. If the command line argument \fB\-f\fP \fIfilename\fP is also specified, it negates a value of \fIy\fP\&. .TP \fB\-condor\-keep\-files\fP (Specific option) Directs HTCondor to not remove temporary files generated by \fIcondor_qsub\fP, such as HTCondor submit files and sentinel jobs. These temporary files may be important for debugging. .TP \fB\-cwd\fP (Directory option) Specifies the initial directory in which the job will run to be the current directory from which the job was submitted. This sets \fI\%initialdir\fP for \fIcondor_submit\fP\&. .TP \fB\-d\fP \fIpath\fP or \fB\-wd\fP \fIpath\fP (Directory option) Specifies the initial directory in which the job will run to be \fIpath\fP\&. This sets \fI\%initialdir\fP for \fIcondor_submit\fP\&. .TP \fB\-e\fP \fIfilename\fP (File option) Specifies the \fIcondor_submit\fP command \fI\%error\fP, the file where \fBstderr\fP is written. If not specified, set to the default name of \(ga\(ga .e\(ga\(ga, where \fB\fP is the \fIcondor_qsub\fP argument, and \(ga\(ga \(ga\(ga is the job attribute \fBClusterId\fP assigned for the job. .TP \fB\-f\fP \fIqsub_file\fP (Specific option) Parse \fIqsub_file\fP to search for and set additional \fIcondor_submit\fP commands. Within the file, commands will appear as \fB#PBS\fP or \fB#SGE\fP\&. \fIcondor_qsub\fP will parse the batch file listed as \fIqsub_file\fP\&. .TP \fB\-h\fP (Status option) Placed submitted job directly into the hold state. .TP \fB\-help\fP (Specific option) Print usage information and exit. .TP \fB\-hold_jid\fP \fI\fP (Status option) Submits a job in the hold state. This job is released only when a previously submitted job, identified by its cluster ID as \fI\fP, exits successfully. Successful completion is defined as not exiting with exit code 100. In implementation, there are three jobs that define this SGE feature. The first job is the previously submitted job. The second job is the newly submitted one that is waiting for the first to finish successfully. The third job is what SGE calls a sentinel job; this is an HTCondor local universe job that watches the history for the first job\(aqs exit code. This third job will exit once it has seen the exit code and, for a successful termination of the first job, run \fIcondor_release\fP on the second job. If the first job is an array job, the second job will only be released after all individual jobs of the first job have completed. .TP \fB\-i\fP \fI[hostname:]filename\fP (File option) Specifies the \fIcondor_submit\fP command \fI\%input\fP, the file from which \fBstdin\fP is read. .TP \fB\-j\fP \fIcharacters\fP (File option) Acceptable characters for this option are \fBe\fP, \fBo\fP, and \fBn\fP\&. The only sequence that is relevant is \fBeo\fP; it specifies that both standard output and standard error are to be sent to the same file. The file will be the one specified by the \fB\-o\fP option, if both the \fB\-o\fP and \fB\-e\fP options exist. The file will be the one specified by the \fB\-e\fP option, if only the \fB\-e\fP option is provided. If neither the \fB\-o\fP nor the \fB\-e\fP options are provided, the file will be the default used for the \fB\-o\fP option. .TP \fB\-l\fP \fIresource_spec\fP (Resource option) Specifies requirements for the job, such as the amount of RAM and the number of CPUs. Only PBS\-style resource requests are supported. \fIresource_spec\fP is a comma separated list of key/value pairs. Each pair is of the form \fBresource_name=value\fP\&. \fBresource_name\fP and \fBvalue\fP may be +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ | \fBresource_name\fP | \fBvalue\fP | Description | +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ | arch | string | Sets \fBArch\fP machine | | | | attribute. Enclose in | | | | double quotes. | +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ | file | size | Disk space requested. | +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ | host | string | Host machine on which | | | | the job must run. | +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ | mem | size | Amount of memory | | | | requested. | +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ | nodes | \fB{ | } [:ppn=] [:gpu | of nodes to be used. For | | | s=] [: [: | examples, please see | | | ] ...] [+ ...]\fP | \fI\%http://docs.adaptivecom | | | | puting.com/torque/4\-1\-3/ | | | | Content/topics/2\-jobs/re | | | | questingRes.htm#qsub\fP | +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ | opsys | string | Sets \fBOpSys\fP machine | | | | attribute. Enclose in | | | | double quotes. | +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ | procs | integer | Number of CPUs | | | | requested. | +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ .sp A size value is an integer specified in bytes, following the PBS/Torque default. Append \fBKb\fP, \fBMb\fP, \fBGb\fP, or \fBTb\fP to specify the value in powers of two quantities greater than bytes. .TP \fB\-m\fP \fIa|e|n\fP (Notification option) Identify when HTCondor sends notification e\-mail. If \fIa\fP, send e\-mail when the job terminates abnormally. If \fIe\fP, send e\-mail when the job terminates. If \fIn\fP, never send e\-mail. .TP \fB\-M\fP \fIe\-mail_address\fP (Notification option) Sets the destination address for HTCondor e\-mail. .TP \fB\-o\fP \fIfilename\fP (File option) Specifies the \fIcondor_submit\fP command \fI\%output\fP, the file where \fBstdout\fP is written. If not specified, set to the default name of \(ga\(ga .o\(ga\(ga, where \fB\fP is the \fIcondor_qsub\fP argument, and \(ga\(ga \(ga\(ga is the job attribute \fBClusterId\fP assigned for the job. .TP \fB\-p\fP \fIinteger\fP (Status option) Sets the \fI\%priority\fP submit command for the job, with 0 being the default. Jobs with higher numerical priority will run before jobs with lower numerical priority. .TP \fB\-print\fP (Specific option) Send to \fBstdout\fP the contents of the HTCondor submit description file that \fIcondor_qsub\fP generates. .TP \fB\-r\fP \fIy|n\fP (Status option) The default value of \fIy\fP implements the default HTCondor policy of assuming that jobs that do not complete are placed back in the queue to be run again. When \fIn\fP, job submission is restricted to only running the job if the job ClassAd attribute \fBNumJobStarts\fP is currently 0. This identifies the job as not re\-runnable, limiting it to start once. .TP \fB\-S\fP \fIshell\fP (Submission option) Specifies the path and executable name of a shell. Alters the HTCondor submit description file produced, such that the executable becomes a wrapper script. Within the submit description file will be \fBexecutable = \fP and \fBarguments = \fP\&. .TP \fB\-t\fP \fIstart [\-stop:step]\fP (Submission option) Queues a set of nearly identical jobs. The SGE\-style syntax is supported. \fIstart\fP, \fIstop\fP, and \fIstep\fP are all integers. \fIstart\fP is the starting index of the jobs, \fIstop\fP is the ending index (inclusive) of the jobs, and \fIstep\fP is the step size through the indices. Note that using more than one processor or node in a job will not work with this option. .TP \fB\-test\fP (Specific option) With the intention of testing a potential job submission, parse files and commands to generate error output. Produces, but then removes the HTCondor submit description file. Never submits the job, even if no errors are encountered. .TP \fB\-v\fP \fIvariable list\fP (Environmental option) Used to set the submit command \fI\%environment\fP for the job. \fIvariable list\fP is as that defined for the submit command. Note that the syntax needed is specialized to deal with quote marks and white space characters. .TP \fB\-V\fP (Environmental option) Sets \fBgetenv = True\fP in the submit description file. .TP \fB\-W\fP \fIattr_name=attr_value[,attr_name=attr_value...]\fP (File option) PBS/Torque supports a number of attributes. However, \fIcondor_qsub\fP only supports the names \fIstagein\fP and \fIstageout\fP for \fIattr_name\fP\&. The format of \fIattr_value\fP for \fIstagein\fP and \fIstageout\fP is \fBlocal_file@hostname:remote_file[,...]\fP and we strip it to \fBremote_file[,...]\fP\&. HTCondor\(aqs file transfer mechanism is then used if needed. .TP \fB\-version\fP (Specific option) Print version information for the \fIcondor_qsub\fP program and exit. Note that \fIcondor_qsub\fP has its own version numbers which are separate from those of HTCondor. .UNINDENT .UNINDENT .UNINDENT .SH EXIT STATUS .sp \fIcondor_qsub\fP will exit with a status value of 0 (zero) upon success, and it will exit with the value 1 (one) upon failure to submit a job. .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. .