Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. ###script that works###
  2. while [ ! -f "Test.FChk" ]
  3. do
  4. echo "Checking job status of Gaussian: $JOBNAME..."
  5. sleep 5
  6. done
  7.  
  8. ###script that doesnt work###
  9. while true; do
  10. if [[ ! -f "Test.FChk" && -f "run.log" ]]; then
  11. echo "Checking job status..."
  12. sleep 5
  13. printf "Calculation failed, script ended"
  14. return
  15. fi
  16. break
  17. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement