-----Original Message----- From: owner-drmaa-wg@ggf.org [mailto:owner-drmaa-wg@ggf.org] On Behalf Of Tim Harsch Sent: Monday, April 04, 2005 1:19 PM To: DRMAA Working Group Subject: [drmaa-wg] making a custom file path for output
Hi all, I have a requirement for the app I'm writing ( using Schedule::DRMAAc ) which I'm trying to implement.
Normally the output files from jobs go to home directory and are of the form <jobname>.o<jobid>
I want to move the jobs to a subdir in /tmp, but retain the <jobid> in
filename. I tried this:
( $job_error, $diagnosis ) = drmaa_set_attribute( $jt, $DRMAA_OUTPUT_PATH, ":" . $tmpdir . '/' . __PACKAGE__ . '.' . $DRMAA_PLACEHOLDER_INCR . ".out" );
... but PLACEHOLDER is only for parametric jobs, I've been scanning the docs and have not found a placeholder for job id. Any ideas on how I could accomplish this task?
A similar task would be to move the job output path without changing
I'm sorry I wasn't clear. I guess the heart of my question is: How can
create an arbitrarty template for the file and path name? Specifically what
constant tells the DRM to insert job id into that filename template.
Said in Perl psuedo form:
drmaa_set_attribute( $jt,
$DRMAA_OUTPUT_PATH + ":/tmp/my_job_output.$DRMAA_JOB_ID.out" );
# with that code job outputs look like
/tmp/my_job_output.1.out
/tmp/my_job_output.2.out
/tmp/my_job_output.3.out
# without that code job outputs look like
/home/harsch/script_name.o1
/home/harsch/script_name.o2
/home/harsch/script_name.o3
Is there a DRMAA_JOB_ID constant?
----- Original Message -----
From: "Rajic, Hrabri"
filename format at all. How could I do that?