}
(** A shell script. *)
+type result = {
+ res_job_name : string; (** Job name. *)
+ res_code : int; (** Return code from the script. *)
+ res_tmpdir : string; (** Temporary directory. *)
+ res_output : string; (** Filename of output from job. *)
+}
+(** Result of the run of a job. *)
+
+type cleanup = result -> unit
+(** A cleanup function. *)
+
type variable =
| T_unit
| T_bool of bool
type job = {
job_loc : Camlp4.PreCast.Loc.t;
job_name : string;
+ job_cleanup : cleanup option;
job_cond : job_cond;
job_script : shell_script;
}