Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Re: Scratching my head...

by turnstep (Parson)
on May 01, 2001 at 01:35 UTC ( #76765=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Scratching my head...
in thread Scratching my head...

Well, if the file is not getting created, and nothing shows up on the die, and you have the parens correct (grin) then I would suggest:

  • Open is being blocked and hangin as it waits to open the file (not likely)
  • Something is erasing the file after it is written.
  • Something is intercepting your die messages.

The first two depend on the rest of your code. The last can be checked with a quick insert of:

my $tmperror = "/tmp/temp.error"; open(STDERR, ">$tmperror") or die "Ironic: Cannot write errors to $tmperror: $!\n";
right before the open and see if it catches anything. Throw an error in on purpose to see if the temp file gets the error.


Comment on Re: Re: Re: Scratching my head...
Download Code
Re: Re: Re: Re: Scratching my head...
by spudzeppelin (Pilgrim) on May 01, 2001 at 02:18 UTC

    Going through these one at a time:

    • Open is being blocked and hangin as it waits to open the file (not likely)
      You're right -- this seems highly unlikely in light of the fact that the script continues and processes the next record in sequence just fine.
    • Something is erasing the file after it is written.
      Maybe. It's the next angle to pursue I suppose. *grumble* I pretty well exhausted this one when I first learned of the problem... "Is the reaper functioning properly? etc."
    • Something is intercepting your die messages.
      I tested the test die call and it died cleanly.

    Spud Zeppelin * spud@spudzeppelin.com

      • Something is erasing the file after it is written.
        Maybe. It's the next angle to pursue I suppose. *grumble* I pretty well exhausted this one when I first learned of the problem... "Is the reaper functioning properly? etc."

      News: This appears to be what's causing it. It doesn't appear as if the reaper itself is malfunctioning, it appears that the files are just *vanishing* surreptuously. Either way, it doesn't appear to be a perl problem....

      Spud Zeppelin * spud@spudzeppelin.com

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://76765]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2014-08-28 02:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (255 votes), past polls