CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Imported core-cross ports from 2.5
[crossrootfs.git] / dcron / runjobs
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