Originally Posted by Fredde87
Thank you, I tried this but still the same problem. It did however work in the shell, but not in Perl.
Okay ignore everything in this thread. The reason doesnt seem to be due to Perl. I should have mentioned that this script is a CGI script. If I run the script in a shell it does actually work as well.
I am trying to run the script on a lighttpd server which is running as root (I know, bad but it is a internal network server which is just going to be used to mirror hard drives).
I can see dd in the process list so it does appear to start and the hard disk activity light is flashing so it appears to be copying fine as well. It is just that I cant seem to grab the stderr. What could be causing this?