Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##Original Script##
- while true; do
- if [[ ! -f "Test.FChk" && -f "run.log" ]]; then
- echo "Checking job status..."
- sleep 5
- printf "Calculation failed, script endedn"
- return
- elif [[ -f "Test.FChk" && -f "run.log" ]]; then
- break
- fi
- done
- ##Troublesome Part##
- printf "Calculation failed, script endedn"
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement