Script hold the other bigfix action due to long execution time

Hi
i have an script which execute for 1 hour and due to that other actions gets on hold and wait until for the first action to be completed if i execute script as run command option it execute the script regardless of the success / failure

Is there any option that i can capture if script completed or failed but should not hold the other action in the queue for single target machine.

createfile until end
#!/bin/sh



A='700'
B='687'



if [ $A -lt $B ]; then
echo "A is Less then B -pass" > "/tmp/compare.txt"
touch "/tmp/pass.txt"
else
sleep 120s
echo "A is Not Less then B -Fail " > "/tmp/compare.txt"
touch "/tmp/fail.txt"
fi



end



delete "/tmp/wait.sh"
move __createfile "/tmp/wait.sh"



wait sh "/tmp/wait.sh"



if {exists file "fail.txt" of folder "/tmp"}
exit 100
endif

You can use override to terminate the job if its going above define time -

//override timeout after 5 min 
override wait 
hidden=true
timeout_seconds=300
disposition=terminate
wait sh "/tmp/wait.sh"
1 Like

Hi, Thanks for your reply, i have just updated the disposition=abandon because disposition=terminate actually terminating my running process which i want to keep open but exit from the bigfix action to release client to handle upcoming action which are waiting in the queue

//override timeout after 5 mins
override wait
timeout_seconds=300
disposition=abandon
wait sh "/tmp/wait.sh"