I need to kill (actually kill -HUP) a process from within a perl
script. Is there any way for the script to test it's ability to do this
without actually doing it? My actual problem is a script that is cutting
off the logs from a web server. So it moves the logs and then restarts
the web server. But I don't want to move the logs unless I'm actually
going to be able to restart the server. So, any way to do this?
Thanks in advance.