From a57425f7c5067f7a0240bd5112ee6653447a6ff1 Mon Sep 17 00:00:00 2001 From: Joshua Stillerman Date: Mon, 29 Mar 2010 15:20:27 +0000 Subject: [PATCH] adding job_wait --- scripts/Makefile.in | 5 ++++- scripts/job_wait | 17 +++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100755 scripts/job_wait diff --git a/scripts/Makefile.in b/scripts/Makefile.in index 06fc917eb6..62f9d98fd8 100644 --- a/scripts/Makefile.in +++ b/scripts/Makefile.in @@ -14,7 +14,8 @@ SCRIPTS = \ @MAKEBINDIR@job_functions \ @MAKEBINDIR@job_output \ @MAKEBINDIR@job_que \ - @MAKEBINDIR@job_start + @MAKEBINDIR@job_start \ + @MAKEBINDIR@job_wait all : @MAKEBINDIR@ \ @@ -61,4 +62,6 @@ install: @MAKEBINDIR@job_start : job_start cp job_start @MAKEBINDIR@job_start +@MAKEBINDIR@job_wait : job_wait + cp job_wait @MAKEBINDIR@job_wait diff --git a/scripts/job_wait b/scripts/job_wait new file mode 100755 index 0000000000..7267ef47b8 --- /dev/null +++ b/scripts/job_wait @@ -0,0 +1,17 @@ +#!/bin/sh +# +# file: /usr/local/mdsplus/bin/job_wait +# +# shell script to signal existance of async daq task. +# +# called by job_que.fun +# +# param 1 = tree_path +# param 2 = shot number +# +# +. `dirname $0`/job_functions +# +file=$(job_file_spec $1 $2) +lockfile -1 $file +rm -f $file