rtechow has asked for the wisdom of the Perl Monks concerning the following question:

Since moving a perl program to a new server sometimes it gets to the end when it should write a file but goes into a unix status of T instead and just hangs. The status is shown with a ps command. From the man pages a status T means it has tried to write to or read from the controling terminal which I take to be stdin or stdout. The pgm is run from a shell script which is scheduled by CRON. It is running under Solaris 9. Anybody got any thoughts on why this might occur and how to overcome?

Replies are listed 'Best First'.
Re: perl pgm is stopped
by Marshall (Canon) on Oct 27, 2011 at 00:15 UTC
    Well it sounds like the program is waiting for terminal input just like the error says. If you run this thing from the command line will it finish (complete execution) without you having to enter a say "\n" or answer a question?

    Perhaps this thing want to write to STDOUT. You can redirect that to the "bit bucket" your_program 2&1>null.