I am trying to control an OMAP with Linux, from a Windows laptop running Perl via serial port. I could open serial port (COM1) and send commands, but not able to execute them by sending the enter key. I tried \n but it only moving the cursor to the next line, and not imitating enter key. Code is below. Any suggestions? Please help!!
open( PORT, "+>COM1") or die "Cant open COM1 - $!"; $msg="ls\n"; print PORT $msg;
The output comes as
.#ls |
but doesn't execute..
Thanks
Joseph
https://nurosoft.id/
https://flits.id/
Code tags and various other formatting corrected by Grandfather
In reply to transferring \n to linux from perl via serial port by digital_newbie
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |