basta che usi i comandi di shell di php e ti lavori il risultato...