Though, you might want to move pause only after plink: (Īlternativelly, as already suggested, rename commands.txt to commands.bat and use it like: commands.bat | plink -load testĪgain, maybe like this (after moving pause from commands.bat): commands. But for that, you need to use | not nul 2>&1 Your code is actually correct, had you used it as a script that generates an input for the plink. When the legacy application attempts to send data to a serial COM port, it is actually transmitted through the virtual serial port over a TCP/IP connection. (Alternatively, you can connect to the USGs Console port with a console cable like this, then use Putty to establish a Serial connection to the cables. You want to execute timeout command locally, while you are sending it to the serial port. Though if you need to pause between the commands, a simple input redirection won't help, as you cannot use timeout command then. I assume you want to send set_zero command, not echo set_zero command, so put set_zero to the file, not echo set_zero.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |