projects
/
APKPM.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
9736c035eac62fa20177331319a0dfcb1b4f8b7c
[APKPM.git]
/
cron.sh
1
#!/bin/bash
2
3
what=$1
4
5
running=`echo status | nc -w 1 localhost 4730 | grep ^$what | cut -d" " -f2`
6
if [ "$running" -gt 0 ] ; then
7
echo "$what allready queued!"
8
exit 1
9
fi
10
11
time echo | gearman -N -f $what
12