]> git.pld-linux.org Git - projects/distfiles.git/blame - run-ff.sh
- oops, typo
[projects/distfiles.git] / run-ff.sh
CommitLineData
a368e787 1#!/bin/sh
b396edfa 2# $Id$
a368e787
MM
3# script to be run from crontab
4
5MAX_SESSIONS=10
8f99e561 6START_AT_ONCE=50
03e8c6c5 7WORK_DIR=~/distfiles
a368e787 8
03e8c6c5 9cd $WORK_DIR || exit 1
a368e787 10
8f99e561
MM
11for i in $(seq 1 $START_AT_ONCE) ; do
12 if [ $(ps -U $(id -u) | grep '[f]ile-fetcher.pl' | wc -l) -ge $MAX_SESSIONS ] ; then
13 exit 0
14 fi
48dcb309 15 nice -n 20 perl ./file-fetcher.pl
8f99e561
MM
16 sleep 1
17done
This page took 0.021355 seconds and 4 git commands to generate.