http://qs1969.pair.com?node_id=783992


in reply to writing to log file

You might also take a look at re-directing STDOUT and STDERR. In addition, make sure you are properly capturing return codes to know if something was successful or not. I would suggest reading about STDIN/STDOUT/STDERR in the fine manual :-)