ginomcevoy / vespa

Virtualized Experiments for Scientific Parallel Applications (VESPA)
0 stars 0 forks source link

vespa command should report immediate failure #53

Open ginomcevoy opened 8 years ago

ginomcevoy commented 8 years ago
ginomcevoy commented 8 years ago

Idiom for getting status code when using nohup:

(
 PYTHONPATH=.. nohup python -m vespa True $XML_FILE &> $OUTPUT_LOG 
 EXIT_CODE=$?
 if [ $EXIT_CODE -ne 0 ]; then
   # inform immediate failure
   echo "ERROR: Vespa exited with status $EXIT_CODE" >&2
 fi
) &