You haven't use command line parameters at all. And your for loop will only create one child process and then break.