update
This commit is contained in:
@@ -44,7 +44,7 @@ function Usage {
|
||||
}
|
||||
|
||||
function InitPipe {
|
||||
Print Init named pipe ...
|
||||
Print Initing named pipe ...
|
||||
rm -rf pool.pipe
|
||||
mkfifo pool.pipe
|
||||
exec 1022<> pool.pipe
|
||||
@@ -55,7 +55,7 @@ function InitPipe {
|
||||
function StartJob {
|
||||
local job="$1"
|
||||
local code=0
|
||||
Print Start job $job with timeout $TIMEOUT ...
|
||||
Print Starting job $job with timeout $TIMEOUT ...
|
||||
timeout ${TIMEOUT} java \
|
||||
-server \
|
||||
-Xms1g \
|
||||
@@ -89,14 +89,14 @@ function StartJob {
|
||||
}
|
||||
|
||||
function StartProc {
|
||||
Print Start datax with max $MAX_PROCS parallel jobs ...
|
||||
Print Starting datax with max $MAX_PROCS parallel jobs ...
|
||||
local job=
|
||||
for job in $(ls job/ | grep '\.json$'); do
|
||||
read -n 1 -u 1022
|
||||
StartJob "${job%.json}" &
|
||||
done
|
||||
wait
|
||||
[ -n "$job" ] || Print Not found any job!
|
||||
[ -n "$job" ] && Print All jobs finished. || Print Not found any job!
|
||||
}
|
||||
|
||||
function Main {
|
||||
|
Reference in New Issue
Block a user