Oha, system() kannte ich auch noch nicht.
Wieder was dazugelernt.