Skip to content

Commit

Permalink
adding job_wait
Browse files Browse the repository at this point in the history
  • Loading branch information
joshStillerman committed Mar 29, 2010
1 parent 7879e4d commit a57425f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -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@ \
Expand Down Expand Up @@ -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

17 changes: 17 additions & 0 deletions scripts/job_wait
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a57425f

Please sign in to comment.