1just-man-pages/condor_run(1)General Commands Manualjust-man-pages/condor_run(1)
2
3
4

Name

6       condor_run Submit a shell command-line as a Condor job
7

Synopsis

9       condor_run [ -u universe ] shell command
10

Description

12       condor_run  bundles  a shell command line into a Condor job and submits
13       the job. The condor_run command waits for the Condor job  to  complete,
14       writes the job's output to the terminal, and exits with the exit status
15       of the Condor job. No output appears until the job completes.
16
17       Enclose the shell command line in double quote  marks,  so  it  may  be
18       passed  to  condor_run  without modification.  condor_run will not read
19       input from the terminal while the job executes. If  the  shell  command
20       line  requires input, redirect the input from a file, as illustrated by
21       the example
22
23       % condor_run "myprog < input.data"
24
25       condor_run jobs rely on a shared file system for access to  any  neces‐
26       sary  input  files.  The  current  working directory of the job must be
27       accessible to the machine within the Condor pool where the job runs.
28
29       Specialized environment variables may be used to  specify  requirements
30       for the machine where the job may run.
31
32       CONDOR_ARCH
33
34          Specifies  the architecture of the required platform. Values will be
35          the same as the Archmachine ClassAd attribute.
36
37
38
39       CONDOR_OPSYS
40
41          Specifies the operating system of the required platform. Values will
42          be the same as the OpSysmachine ClassAd attribute.
43
44
45
46       CONDOR_REQUIREMENTS
47
48          Specifies any additional requirements for the Condor job. It is rec‐
49          ommended that the value defined for  CONDOR_REQUIREMENTSbe  enclosed
50          in parenthesis.
51
52
53
54       When  one  or more of these environment variables is specified, the job
55       is submitted with:
56
57       Requirements = $CONDOR_REQUIREMENTS && Arch == $CONDOR_ARCH && .br
58          OpSys == $CONDOR_OPSYS
59
60       Without these environment  variables,  the  job  receives  the  default
61       requirements  expression, which requests a machine of the same platform
62       as the machine on which condor_run is executed.
63
64       All environment variables set  when  condor_run  is  executed  will  be
65       included in the environment of the Condor job.
66
67       condor_run removes the Condor job from the queue and deletes its tempo‐
68       rary files, if condor_run is killed before the Condor job completes.
69

Options

71       -u universe
72
73          Submit the job under the specified universe. The default is vanilla.
74          While  any  universe  may  be specified, only the vanilla, standard,
75          scheduler, and local universes result in a submit  description  file
76          that may work properly.
77
78
79
80
81

Examples

83       condor_run  may  be  used to compile an executable on a different plat‐
84       form. As an example,  first  set  the  environment  variables  for  the
85       required platform:
86
87       % setenv CONDOR_ARCH "SUN4u"
88       % setenv CONDOR_OPSYS "SOLARIS28"
89
90       Then,  use  condor_run  to  submit  the compilation as in the following
91       three examples.
92
93       % condor_run "f77 -O -o myprog myprog.f"
94
95       or
96
97       % condor_run "make"
98
99       or
100
101       % condor_run "condor_compile cc -o myprog.condor myprog.c"
102

Files

104       condor_run creates the following temporary files in the user's  working
105       directory.  The placeholder <pid> is replaced by the process id of con‐
106       dor_run .
107
108       .condor_run.<pid>
109
110          A shell script containing the shell command line.
111
112
113
114       .condor_submit.<pid>
115
116          The submit description file for the job.
117
118
119
120       .condor_log.<pid>
121
122          The Condor job's log file; it is monitored by condor_run , to deter‐
123          mine when the job exits.
124
125
126
127       .condor_out.<pid>
128
129          The output of the Condor job before it is output to the terminal.
130
131
132
133       .condor_error.<pid>
134
135          Any  error messages for the Condor job before they are output to the
136          terminal.
137
138          condor_run removes these files when the job completes.  However,  if
139          condor_run fails, it is possible that these files will remain in the
140          user's working directory, and the  Condor  job  may  remain  in  the
141          queue.
142

General Remarks

144       condor_run  is  intended  for  submitting simple shell command lines to
145       Condor. It does not provide the full functionality of  condor_submit  .
146       Therefore,  some  condor_submit  errors  and system failures may not be
147       handled correctly.
148
149       All processes specified within the single shell command  line  will  be
150       executed  on  the  single machine matched with the job. Condor will not
151       distribute multiple processes of a command line  pipe  across  multiple
152       machines.
153
154       condor_run  will  use the shell specified in the SHELLenvironment vari‐
155       able, if one exists. Otherwise, it will  use  /bin/sh  to  execute  the
156       shell command-line.
157
158       By  default,  condor_run expects Perl to be installed in /usr/bin/perl.
159       If Perl is installed in another path, ask the Condor  administrator  to
160       edit  the  path  in the condor_run script, or explicitly call Perl from
161       the command line:
162
163       % perl path-to-condor/bin/condor_run "shell-cmd"
164

Exit Status

166       condor_run exits with a status value of 0 (zero) upon complete success.
167       The  exit  status of condor_run will be non-zero upon failure. The exit
168       status in the case of a single error due to a system call will  be  the
169       error number (errno) of the failed call.
170

Author

172       Condor Team, University of Wisconsin-Madison
173
175       Copyright (C) 1990-2009 Condor Team, Computer Sciences Department, Uni‐
176       versity  of  Wisconsin-Madison,  Madison,  WI.  All  Rights   Reserved.
177       Licensed under the Apache License, Version 2.0.
178
179       See   the   Condor   Version   7.4.2  Manual  or  http://www.condorpro
180       ject.org/licensefor additional notices. condor-admin@cs.wisc.edu
181
182
183
184                                     date         just-man-pages/condor_run(1)
Impressum