in reply to rtfm
Thanks for the help.
This program was meant as a little joke, so I didn't think I'd ever have to see or edit it again. I have updated the code though, and if you discover any other braindamages, let me know.
Oh, btw, thanks for pointing out the diffrence between 'system' and 'exec'. Didn't know 'cause I never really use either.