Reset the command_index

reset the command_index to 0 for all of the processes after their
information has been printed