system('your_command --with options > /other/file');