Advertisement
Guest User

Untitled

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