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

./receivetest a pcan linux driver script

Replies are listed 'Best First'.
Re^3: Perl and Can Bus
by BrowserUk (Patriarch) on Dec 12, 2014 at 14:18 UTC
    ./receivetest a pcan linux driver script

    So that's an executable you have to run and it writes the data stream to stdout?


    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.
      Yes, the stream comes through as stdout which I can redirect as input to the perl script.

        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.