Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

tsr to redirect a file to com1

37 views
Skip to first unread message

JR

unread,
Nov 8, 2001, 12:38:38 AM11/8/01
to
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.


anon...@bogus_address.con

unread,
Nov 8, 2001, 2:14:05 AM11/8/01
to

On 2001-11-08 j__...@hotmail.com.zzzzz said:

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?

Bill Marcum

unread,
Nov 8, 2001, 5:13:44 AM11/8/01
to

JR wrote in message <9sd5ot$g0g$1...@news.qld.csiro.au>...
You can use MODE to direct printer output to a com port, if that helps.
MODE /?

JR

unread,
Nov 8, 2001, 7:38:17 PM11/8/01
to

<anonymous@bogus_address.con> wrote in message
news:tukc5tm...@corp.supernews.com...

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.


anon...@bogus_address.con

unread,
Nov 8, 2001, 10:11:15 PM11/8/01
to

On 2001-11-09 j__...@hotmail.com.zzzzz said:

>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 at least access the file over the com port.

Will you be accessing the file from a second computer?

If so, all you need is a simple peer-to-peer network which
uses a COM port for I/O. Even a simple master/slave set-up
might work.

You'll need a null modem cable, and the appropriate software.
^^^^
There are several peer-to-peer COM port network programs for
DOS available for download from any Simtel site.

WEAKLINK, COMMIX and EASYNET are three that spring to mind.
I've used WEAKLINK; it's fast, easy and free.

Or, if you download DR-DOS (ftp://ftp.lineo.com/pub/), it
includes a program named FILELINK...which is a master/slave
file access program. You don't have to be running DR-DOS
to use it, and it's also free.

Any of these should give you what you need.

Bottom line? You =WILL= have to install some specialized
software (and cabling). There's no way to accomplish your
goal from raw, unadorned DOS.

0 new messages