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