in reply to Re^5: how to log a process
in thread how to log a process

curious -- what do you mean by " I would put a check on status of the unlink. " ? thanks

Replies are listed 'Best First'.
Re^7: how to log a process
by Marshall (Canon) on Jun 01, 2009 at 18:31 UTC
    File ops like open(), unlink(), etc return status of whether it worked or not. You've seen open(...) or die"...."; same sort of thing for unlink() if you want to make sure that it succeeded. Maybe you've got a wrong path name in the unlink() or file is a directory or some other such thing that would cause the unlink to fail. Of course you can do other things that "die", depends upon your application.