summaryrefslogtreecommitdiffstats
path: root/dcron/runjobs
blob: b61789e6767faea607de8dae02923acebfc5038c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
#
# /usr/sbin/runjobs: run all executables in specified directory
#

if [ "$1" = "" ]; then
	echo "usage: $0 <dir>"
	exit 1
fi

cd $1 || exit 1

for file in ./*; do
	if [ -f $file ] && [ -x $file ]; then
		nice -n 19 $file
	fi
done

# End of file