reconstruct and print the cmd line