Semaphore Techniques

John D Giotta jdgiotta at gmail.com
Wed Jul 29 14:43:07 EDT 2009


That was my original idea. Restricting each process by pid:

#bash
procs=`ps aux | grep script.pl | grep -v grep | wc -l`

if [ $procs -lt 3 ]; then
        python2.4 script.py config.xml
else
        exit 0
fi



More information about the Python-list mailing list