Skip to content

Commit

Permalink
Added new client files
Browse files Browse the repository at this point in the history
  • Loading branch information
okoeroo committed Apr 28, 2012
1 parent 01f7a18 commit 0b5c3b7
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 1 deletion.
2 changes: 1 addition & 1 deletion AUTHORS
@@ -1,3 +1,3 @@
Oskar Koeroo
Oscar Koeroo
Floor Terra
Jurre van Bergen
20 changes: 20 additions & 0 deletions worker/job.sh
@@ -0,0 +1,20 @@
#!/bin/bash

CONROL_IP="194.171.98.6"
CONROL_PORT="80"

CONNECT_BASE="http://${CONTROL_IP}:80"

function get_ipblock(){
MY_GET=`curl "${CONNECT_BASE}/get"`
}

function done_ipblock(){
curl "${CONNECT_BASE}/done"
}


while [ 1 ]; do


done
17 changes: 17 additions & 0 deletions worker/job_scheduler.sh
@@ -0,0 +1,17 @@
#!/bin/bash

JOB="job.sh"

CPU_COUNT=`cat /proc/cpuinfo | grep processor | wc -l`
#CPU_COUNT=4
JOB_COUNT=$(($CPU_COUNT*2))


for ((i=0; i<${JOB_COUNT};++)); do
$JOB &
CHILD_PID[$i]=$!
done

for ((i=0; i<${JOB_COUNT};++)); do
wait ${CHILD_PID[$i]}
done
File renamed without changes.

0 comments on commit 0b5c3b7

Please sign in to comment.