in reply to Sytem Call Not Waiting

(note: OP silently changed the code after my post)

... >/null.txt

That would try to open a file in the root directory. Unless you have the appropriate privileges (i.e. run the command as root) this is likely to fail with "permission denied"... and the entire command won't execute.  Maybe you meant >/dev/null?

Why aren't you checking if system(...) succeeded?