Thread View: comp.sys.amiga.tech
3 messages
3 total messages
Started by Andy Colebourne
Mon, 10 Dec 1990 12:31
Using the amiga from the serial port
Author: Andy Colebourne
Date: Mon, 10 Dec 1990 12:31
Date: Mon, 10 Dec 1990 12:31
23 lines
1249 bytes
1249 bytes
I am writing a program to enable an amiga to be used from the serial
port. The serial port will accept cli commands and the output of these
commands will be sent to the serial port.
Can 'Execute' be used to send the output of the command to the serial.device?
(if I do "Execute("dir >ser:", 0, 0)" the command cannot open the serial device
because it is open for receiving the commands.)
It should be possible to execute a command, redirecting the output to a file
in RAM:, the reading the file and sending this to the serial port - but I'm
hoping that there is a more elegant way of doing it.
It would be nice to control a shell so that all the functions like aliasing
could be used.
Any help/code/suggestions would be very welcome!!
Thanks!
Andy
andy@uk.ac.lancs.comp
Re: Using the amiga from the serial port
Author: Jean-Noel MOYNE
Date: Mon, 10 Dec 1990 23:06
Date: Mon, 10 Dec 1990 23:06
37 lines
1966 bytes
1966 bytes
In article <1132@dcl-vitus.comp.lancs.ac.uk> andy@comp.lancs.ac.uk (Andy
Colebourne) writes:
> It would be nice to control a shell so that all the functions like
aliasing
> could be used.
>
> Any help/code/suggestions would be very welcome!!
Well what you want to do is:
mount aux:
newshell aux:
And here we go ! You have a shell on your terminal, isn't
that great ?!?
Oh, by the way, you'll soon see it's not that great, since every time a
requester pops-up you loose control of your shell from the terminal (try
to do leftA-V from a terminal (-:), so you'll go to the next step which is
to write a small program to poke a -1L in the PrWindowPtr (I believe it's
the name of the struct member, I'm doing this from memory it was 6 months
ago, sorry if I'm wrong check with the definition of struct Process in the
include files) field of the Process structure of your shell process. (to
Find this process structure, use FindTask(0L) since the process structure
begins with the task struct). It should be at offset 40 from the
FindTask(0) if you're doing it in a special language that doesn't know
about structs.
So, once you have -1 in this field, requesters will
allways be canceled. But it's not enough since it's very easy to launch a
program that opens a Window. But that's another story.
JNM
--
These are my own ideas (not LBL's)
" Just make it!", BO in 'BO knows Unix'
Re: Using the amiga from the serial port
Author: Terry Cudney
Date: Tue, 11 Dec 1990 04:07
Date: Tue, 11 Dec 1990 04:07
17 lines
1175 bytes
1175 bytes
In article <1132@dcl-vitus.comp.lancs.ac.uk> andy@dcl-cs.UUCP (Andy Colebourne) writes:
>It would be nice to control a shell so that all the functions like aliasing
>could be used.
>Any help/code/suggestions would be very welcome!!
Please post replies to this thread or email me a copy of relevant info. I
am particularly interested in facilitating use of alternate terminals
(braille terminals) with the Amiga. This could entail a complete terminal
shell connection through the serial port and/or using the regular amiga
keyboard for input, while directing all text-output to a braille display on
the serial port. All comments suggestions are welcome and appreciated.
--
--terry
/* terry@chaplin.csd.uwo.ca
* Terry Cudney Amistosa MicroWare 9 Durham Street, LONDON, Ontario, N5Y 2H9
*/
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads