>To: Giorgos Keramidas <[EMAIL PROTECTED]>
>CC: [EMAIL PROTECTED]
>From: [EMAIL PROTECTED]
>Date: 28 Oct 1999 19:01:30 -0700

>>> I would like to access a router over a null modem serial cable.  I

But what protocol is needed to connect to the router?
Oh, I guess it is to be controlled from serial terminal, isn't it?

>> have done this using minicom and the like, but I wonder if there is a
>> more straightforward way.  I'd love to be able to do it from within an
>> emacs buffer.  I would also like to use a perl script to talk to the
>> router over the null modem serial cable.

I suppose even bash script would be able to do it, note using
bash read command with << redirection (other redirections don't
work on this command) to read answers, echo to send commands.

Bash read command redirection example:
#!/bin/bash
while read line
        do echo "$line"
done <<.
`cat $1`
.

> I'm suprised nobody wanted to do this before.
> There are telnet modes in Emacs, why not a null-modem terminal interface?
> Aren't they similar?
> Can I connect the Emacs telnet mode to the modem?

I doubt it - telnet is to connect to IP address, and modem
or serial port are devices. But IMHO it is possible to use
cat in shell buffer, and input filter (do I rememeber it
correctly?) to process router answers, sending requests is
probably simpler - just writing to the serial device.

Jerzy
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to