in reply to strange issue w/ script "hanging"

A million questions could be asked, to try to figure out what's going wrong with your script. Would you mind posting some code to help us out?