Do you get errors (what does $! say?). May be a permission problem with the web user vs. you (from the command line). I haven't used these myself, but these modules may be of use. But, I would be interested in the error messages (if any) from your system(), etc... attempts.