redirecting com2 output

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ed Sexton

    redirecting com2 output

    I am writing a c program in which I would like to read the output from a
    second program which writes to the com2 port. Is there a way in Windows to
    redirect the com2 output to go to standard output so that I can use the pipe
    symbol to allow my program to read it with a scanf?

    Pardon me if this is an appropriate forum for this question.

    crazy ed


  • Richard Heathfield

    #2
    Re: redirecting com2 output

    Ed Sexton said:
    I am writing a c program in which I would like to read the output from a
    second program which writes to the com2 port. Is there a way in Windows
    to redirect the com2 output to go to standard output so that I can use
    the pipe symbol to allow my program to read it with a scanf?
    It's an interesting question, but one that is better answered by Windows
    experts than by C experts. I've cross-posted this reply to an appropriate
    Windows group (c.o.m.p.win32) , and set followups to that group.

    --
    Richard Heathfield <http://www.cpax.org.uk >
    Email: -http://www. +rjh@
    Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
    "Usenet is a strange place" - dmr 29 July 1999

    Comment

    Working...