Operating System - HP-UX
1831061 Members
2514 Online
110019 Solutions
New Discussion

exit command not coming out of script

 
Irfan Ahmed_1
Advisor

exit command not coming out of script

Hi guys,
On my system with HP-UX 11.00 OS, when I execute shell script with "set -x" option ,many times the script hangs at exit command . It does not come out of the script. I have to press Ctrl-C to come out of the script. This happens occassionally.
Can any one say why this happens?

Thanks
-Irfan
5 REPLIES 5
Fred Ruffet
Honored Contributor

Re: exit command not coming out of script

Explanation depends on what your script do.
Could you post a copy of this script ?

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Irfan Ahmed_1
Advisor

Re: exit command not coming out of script

Hi,
Thanks for the reply.
There is nothing like this script hangs or that script hangs. Some times the script which executes properly gets hanged at some other time.
Bharat Katkar
Honored Contributor

Re: exit command not coming out of script

Irfan,
I agree there must be some problem but the information is too less to comment.
Regards,
You need to know a lot to actually know how little you know
Fred Ruffet
Honored Contributor

Re: exit command not coming out of script

Please provide the script as an attachment to your next post. Without it, we won't be able to go further.

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Geoff Wild
Honored Contributor

Re: exit command not coming out of script

Try:

exit 0

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.