Removed extern c statement
Exec ps
Fork + execl
Added fstream