[comp.unix.questions] Sequential execution of S "programs"

dkw@osupyr.mast.ohio-state.edu (David Keith Wall) (10/12/88)

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@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