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