in reply to Not writing to file

To expand on japhy's comments, system returns only the exit status of the system call, not the output. Backticks or the qx// operator are what you want. However, depending upon how you get the command you want to execute, you may want to fork the command for added security.

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.