With no proper EOT signal where the command line requires it, running the script result may varies.
- Manage Device may indicate script successfully installed but not preserving the content of the script;
- Script may take a very long time or hung state or;
- Error: Script execution produced an error Error
Download the attached script_with_ctrl_d.txt file for script samples. This text file can be viewed and copied using MS Windows notepad or Notepad ++
You can copy character on line 5 (this is the EOT equivalent) and paste it to your script line where it needs the CTRL-D . Note that when using windows notepad, the character may only shows as small square as it is a non-printable character. Notepadd ++ may show it as EOT
Attached screenshot.png shows what line 5 on the script looks like after pasting it to your MC script.