Consider exec() too, it would be more appropriate if you don't want to return results. Also, taken from system() in manual is as follows :
System() is just like the C version of the function in that it executes the given command and outputs the result. If a variable is provided as the second argument, then the return status code of the executed command will be written to this variable.