#!/bin/bash
# Under General Public License V.2
# Written by hipodilski -- sep 2003
app='/home/hipo/john-1.6.36/run/'
cd $app
#apptorun="nice -n 10 ./john -restore &"
state=`ps aux | grep john | grep -v grep | wc -l | awk '{ print $1 }'`
state=$(( $state - 2 ));
if [ "$state" != 0 ]; then
exit 0
else
echo
nice -n 10 ./john -restore &
exit 0
fi

