🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.misc
Article #4171

Re: tsr to redirect a file to com1

#4171
From: JR
Date: Fri, 09 Nov 2001 00:38
42 lines
2892 bytes
<anonymous@bogus_address.con> wrote in message
news:tukc5tmqmv4b77@corp.supernews.com...
>
> On 2001-11-08 j__ross@hotmail.com.zzzzz said:
>
>    >Hi all,
>    >I am looking for a tsr to redirect a file to a com port in dos 6.22.
>    >I have checked out garbo etal and haven't seen one in there.
>    >Alternatively, is there any way to redirect standard error or
>    >standard out to a com port, something similar to ctty con ( but
>    >obviously that doesn't do what I want).
>    >Thanks,
>    >JR.
>
> A COM port is a normal DOS I/O device, so most
> standard DOS commands will apply to it.
>
> For instance: if you just want to send =ONE= file
> (at a time) to a COM port, you can use regular DOS
> commands.
>
>    Solution 1:  COPY filename.ext COM1:
>
>    Solution 2:  TYPE filename.ext > COM1:
>
>    Solution 3:  MODE LPT1:=COM1:
>                 PRINT filename.ext
>
> If, on the other hand, you want to =continuously=
> redirect all STDOUT to a COM port, why not use CTTY?

I have tried solutions 1 and 2 but they don't do what I'm after, as there is
a program running which writes the stdout and stderr stuff to a file and I
want to be able to acces that over the com port while the program is
running.
what I'm after is some way to do a 'tail -f' but in dos, so I can see or
atleast access
the file over the com port.

thanks for your help
JR.
Technical Details
Message-ID: <9sf8p5$q19$1@news.qld.csiro.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!netnews.com!xfer02.netnews.com!newsfeed1.cidera.com!Cidera!cyclone1.gnilink.net!news-out.nuthinbutnews.com!propagator2-austin!propagator!feed2.newsfeeds.com!newsfeeds.com!news-in-austin.nuthinbutnews.com!intgwlon.nntp.telstra.net!news1.optus.net.au!optus!bunyip.cc.uq.edu.au!news!not-for-mail
References: <9sd5ot$g0g$1@news.qld.csiro.au> <tukc5tmqmv4b77@corp.supernews.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10f6aa,d09c6b2624d840f8
X-Google-Attributes: gid10f6aa,public
X-Google-Thread: fc546,d09c6b2624d840f8
X-Google-Attributes: gidfc546,public
X-Google-Thread: f71eb,d09c6b2624d840f8
X-Google-Attributes: gidf71eb,public
X-Google-ArrivalTime: 2001-11-08 16:50:10 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!netnews.com!xfer02.netnews.com!newsfeed1.cidera.com!Cidera!cyclone1.gnilink.net!news-out.nuthinbutnews.com!propagator2-austin!propagator!feed2.newsfeeds.com!newsfeeds.com!news-in-austin.nuthinbutnews.com!intgwlon.nntp.telstra.net!news1.optus.net.au!optus!bunyip.cc.uq.edu.au!news!not-for-mail
From: "JR" <j__ross@hotmail.com.zzzzz>
Newsgroups: comp.os.msdos.misc,comp.os.msdos.programmer,it.comp.dos
Subject: Re: tsr to redirect a file to com1
Date: Fri, 9 Nov 2001 10:38:17 +1000
Organization: CSIRO Queensland Centre for Advanced Technologies
Lines: 46
Message-ID: <9sf8p5$q19$1@news.qld.csiro.au>
References: <9sd5ot$g0g$1@news.qld.csiro.au>   <tukc5tmqmv4b77@corp.supernews.com>
NNTP-Posting-Host: groper-ph.cat.csiro.au
X-Trace: news.qld.csiro.au 1005266533 26665 140.253.14.90 (9 Nov 2001 00:42:13 GMT)
X-Complaints-To: usenet@news.qld.csiro.au
NNTP-Posting-Date: 9 Nov 2001 00:42:13 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200