~grubng-dev/grubng/tools-urlsdb

« back to all changes in this revision

Viewing changes to checkworkunits.sh

  • Committer: thindil
  • Date: 2009-09-30 07:20:04 UTC
  • Revision ID: thindil2@gmail.com-20090930072004-mynp288lh4hb56o7
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#Script check amount of available workunits. If there no workunits - generate new
 
2
 
 
3
amount=`ls /home/thindil/workunits/wu | wc -l`
 
4
if [ $amount = 0 ]
 
5
then
 
6
    amount=`ps -C mono | wc -l`
 
7
    if [ $amount = 1 ]
 
8
    then
 
9
        cd /home/thindil/workunits
 
10
        mono urlsdb.exe createwu password
 
11
    fi
 
12
fi