Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: file open problem with scheduled jobs

by shemp (Deacon)
on Jul 21, 2004 at 23:06 UTC ( [id://376407]=note: print w/replies, xml ) Need Help??


in reply to file open problem with scheduled jobs

It could be that the detached process gets its working directory modified when it gets detached. Are you using relative or absolute paths for the files you are dealing with?

You can probably easily see the reasons for failure by using the standard:

my $filename = 'somefile'; open HANDLE, '>', $filename or die "couldnt open $filename for writing $!";
Of course you should appropriately change the '>' if you are doing other file operations. Any STDERR from cron jobs should be automatically sent to the cron owners email, and that should tell most of the story.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-04-20 01:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found