in reply to Why might a close operation die?

As well as the suggestions people have already made about checking $? perhaps you should see whether qstat is sensitive to whether it's running in a tty or not.

Replies are listed 'Best First'.
Re: Re: Why might a close operation die?
by talexb (Chancellor) on Dec 03, 2003 at 14:45 UTC
      .. perhaps you should see whether qstat is sensitive to whether it's running in a tty or not.

    Good question .. however we run this command every minute or so, and it's only very occasionally (and recently) that we've noticed this problem. Thanks for the suggestion.

    --t. alex
    Life is short: get busy!
Re: Re: Why might a close operation die?
by aquarium (Curate) on Dec 03, 2003 at 12:26 UTC
    yes...and do all those wonderful testing things like running your command and just directing output to a file, without parsing or piping etc.