Looks like PERL may not be needed here. It was suggested
to try to use rsh, which in initial test looks like:
rsh lserver1slip cat /dev/ttyS1 > /tmp/fifo-in &
This would bind the "input" fifo file to the Serial Port for reading
rcp /tmp/fifo-out lserver1slip:/dev/ttyS1 &
This would bind the "output" fifo file to the Serial Port for Writing
I'm using the fifo files because it makes maintenance of the file
much easier (The files will be read/writen to via a DBMS program).
All I need to do is read from the file, like a tape and not have
to worry about deleting what I just read and such things.
It was also suggested to use LAT. Which would be no problem on the DEC
end, as we currently use LAT for our Terminal Servers (DS700). After
some digging I came across:
http://sourceforge.net/projects/linux-decnet/
I've downloaded the source, now I need to play with it on the linux
system to see if it can help. Might even be able to hook up our spare
Terminal Server (DS700) to the linux system for multiple input sources
Only thing I'm not sure about is that the SLIP connection would only
be up during the day (when the modem is connected), when that connection
goes down, will I need to restart my LAT connections the next day when
the connection is re-established? That will be easy enough to figure out
when everything is setup (If I even attempt this route).
Thanks to all who responded
George
>-----Original Message-----
>From: George Gallen [mailto:ggallen_at_slackinc.com]
>Sent: Wednesday, September 20, 2000 9:22 AM
>To: 'tru64-unix-managers_at_ornl.gov'
>Subject: Need to access a remote tty as local?
>
>
>
>We are running 3.2c currently (I know, it's old) and
>have a SLIP connection to a linux (2.0.6) machine for
>offsite mail preparation. The software is running on
>the Digital Unix side and a telnet window for access
>from the Linux side.
>
>What I want to do would be to read data from a serial
>scale (to weigh mail) that is hooked to the linux serial port, but
>want to read it from the Digital Unix side, so the port
>data needs to travel through the SLIP connection.
>
>I was thinking the easist way would be to write a PERL
>routine to open the tty on the linux side as i/o with
>the input being tied to one socket and the output being
>tied to another socket. On the Digital Unix side having
>a 2 PERL routines one will open a socket and write it
>to a FIFO file, and the other will open a fifo file and
>write it to a socket.
>
>So I would read data from the scale via the input-FIFO
>and write commands to the scale via the output-FIFO.
>
>Any other Ideas, or problems with the above.
>
>The data does not need to be encrypted, the SLIP connection
>is private, not internet.
>
>
>Thanks
>George Gallen
>
>
>George Gallen
>Senior Programmer/Analyst
>Accounting/Data Division
>ggallen_at_slackinc.com
>ph:856.848.1000 Ext 220
>
>SLACK Incorporated - An innovative information, education and
>management
>company
>http://www.slackinc.com
>
Received on Wed Sep 20 2000 - 17:43:20 NZST