in reply to Re^3: Perl and Can Bus
in thread Perl and Can Bus

Yes, the stream comes through as stdout which I can redirect as input to the perl script.

Replies are listed 'Best First'.
Re^5: Perl and Can Bus
by BrowserUk (Patriarch) on Dec 12, 2014 at 14:26 UTC

    The your simplest approach would be to use a piped open. Something like this:

    #! perl -w use strict; open STREAM, './receivetest |' or die $!; while( my $line = <STREAM> ) { print $line; }

    That should get you started. Come back with questions arising.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.