script execution timed outed

Hi Team,

We running a script to start middleware services using SA, the script is working fine when we run on the server, but when we run the same, the services are getting started but the job is not completing, it will stay for long and say timed out error. 

as per my understanding when we run the job using SA it is not coming out to prompt but not sure who to fi the same.