File:
0.03.02a/server/bin/test-threaded.sh (
View as Code)
1: #!/usr/bin/php -q
2: 3: require("include.php");
4: $NATS->Start();
5:
6: echo "test-threaded.sh: spawning node tester processes\n";
7: $q="SELECT nodeid FROM fnnode WHERE nodeenabled>0";
8: echo $q."\n";
9: $r=$NATS->DB->Query($q);
10: while ($row=$NATS->DB->Fetch_Array($r))
11: {
12: $cmd="./tester.sh ".$row['nodeid']." > /tmp/nr.".$row['nodeid']." &";
13: echo $cmd."\n";
14: exec($cmd);
15: }
16: $NATS->DB->Free($r);
17: $NATS->Stop();
18: ?>
19:
20: