#!/bin/bash

TEST=`ps ax | grep do_crawl_once | grep -v grep | wc -l`
if [ $TEST -eq 0 ]; then
  nice /opt/nutch/do_crawl_once 1>/opt/nutch/stdout.txt 2>/opt/nutch/stderr.txt &
  echo "running do_crawl_once"
  exit
fi

echo "do_crawl_once already running"
