summaryrefslogtreecommitdiff
path: root/dcron/runjobs
blob: b61789e6767faea607de8dae02923acebfc5038c (plain)
    1 #!/bin/bash
    2 #
    3 # /usr/sbin/runjobs: run all executables in specified directory
    4 #
    5 
    6 if [ "$1" = "" ]; then
    7 	echo "usage: $0 <dir>"
    8 	exit 1
    9 fi
   10 
   11 cd $1 || exit 1
   12 
   13 for file in ./*; do
   14 	if [ -f $file ] && [ -x $file ]; then
   15 		nice -n 19 $file
   16 	fi
   17 done
   18 
   19 # End of file

Generated by cgit