transferring \n to linux from perl via serial port

  • 14 years ago

    Hi,

    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 doesnt execute..

    Thanks!

  • 14 years ago

    Ok what will happen if you run this script from Automize?

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Nine people can't make a baby in a month.” - Fred Brooks