talexb has asked for the wisdom of the Perl Monks concerning the following question:
With the following code, I recently got a rash of failures this afternoon, all while closing the pipe file handle.
(The qstat utility lists the jobs currently running on the Sun Grid Engine.) The result string $! was empty. Has anyone else seen this, or have any comments?open(QSTAT, 'qstat|') or die("failed to start qstat ($!)"); while (<QSTAT>) { # Parse output from qstat } close QSTAT or die("close qstat ($!)");
I have had a qstat window up and running (using watch) all day today, and it has never crashed, so I don't (much) suspect qstat.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why might a close operation die?
by jasonk (Parson) on Dec 02, 2003 at 22:38 UTC | |
|
Re: Why might a close operation die?
by diotalevi (Canon) on Dec 02, 2003 at 22:51 UTC | |
|
Re: Why might a close operation die?
by Anonymous Monk on Dec 02, 2003 at 22:37 UTC | |
|
Re: Why might a close operation die?
by Anonymous Monk on Dec 02, 2003 at 22:41 UTC | |
|
Re: Why might a close operation die?
by DrHyde (Prior) on Dec 03, 2003 at 09:20 UTC | |
by talexb (Chancellor) on Dec 03, 2003 at 14:45 UTC | |
by aquarium (Curate) on Dec 03, 2003 at 12:26 UTC |