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: $!"; #### # 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