Sequential execution of S "programs" (a solution)

David Keith Wall dkw at osupyr.mast.ohio-state.edu
Thu Oct 13 00:46:29 AEST 1988


Recently I posted a question asking how to submit S jobs so
that they would run in sequence, ie; no more than one background
job at one time, which is the rule on the machine here. Thanks
to some information from Charlie Geyer (charlie at mica.stat.washington.edu)
I was able to modify one of S's controlling scripts to get the 
results I wanted. The following is a copy of that script for 
anyone who may find it useful.

#!/bin/sh
BATCH=yes; export BATCH
for file in $*
do
	echo `date`" processing "$file
	/usr/local/bin/S7 < $file >$file.out 2>&1 
done



More information about the Comp.unix.questions mailing list