my $path_to_file= "/tmp/foo.db"; my $result= {}; tie %$result, "DB_File", $path_to_file, O_RDWR|O_CREAT, 0666, $DB_TREE + or die "Error: $!";
I was getting "Error: File exists" when the file did not. However, I found the file "/tmp/__foo.db" did exist. Does this mean that DB_File is creating this file and it is being left around when the script does not clean up?
If my assumption is correct, I would like to know so that I can make sure I clean up those files if they exist after a crash or unpredicted shutdown.
The reason the script is not cleaning up is that it is being started in inittab (Linux) with respawn and it is exiting for no apparent reason.
I'm logging stderr and stdout but I get nothing in either. Any thoughts on either problem would be greatly appreciated.# inittab 1:45:respawn:/path/start.sh # start.sh # deal with old log files and then cd /proper_place /proper_place/script.pl > /logs/stdout 2> /logs/stderr
In reply to DB_File problem by Woulfe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |