I need to execute one or more commands via COM port (from console) on an embedded Linux device. I am trying to use plink on a Windows machine but it doesn't work.
I've tried different cases, one of them is:
echo "mkdir /test" | plink -batch -serial \\\\.\\com4 -sercfg 115200,N,8 -l root
I have a couple of problems:
- hangs until you press Enter, after that you will have "login:", and will not exit
- the command doesn't work (doesn't create a dir)