/command for AmigaOS ?
[1/6] from: jean:holzammer:faedv-n:bayern at: 30-Nov-2000 10:53
Hi,
Are there any plans to port /command to more platforms ?
I tried to call some AmigaOS system functions from /core and had access. But
before I invest more time on this, I'd like to know, if there will be an
official solution ?
Jean
[2/6] from: mat:eurogamer at: 30-Nov-2000 13:56
Heya Jean,
HJ> I tried to call some AmigaOS system functions from /core and had access. But
HJ> before I invest more time on this, I'd like to know, if there will be an
HJ> official solution ?
You get command functions for free with the Amiga version? That's not
very nice for us that paid for the Win32 version :(
--
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com
[3/6] from: chris:starforge:demon at: 30-Nov-2000 14:19
Holzammer, Jean wrote:
> I tried to call some AmigaOS system functions from /core and had access.
How?!
Chris
--
New sig in the works
Explorer2260 Designer and Coder
http://www.starforge.co.uk
[4/6] from: jean:holzammer:faedv-n:bayern at: 30-Nov-2000 15:51
> Heya Jean,
>
> HJ> I tried to call some AmigaOS system functions from /core and had
access. But
> HJ> before I invest more time on this, I'd like to know, if there will be
an
> HJ> official solution ?
>
> You get command functions for free with the Amiga version? That's not
> very nice for us that paid for the Win32 version :(
>
Before rumours are spread... There are no command like functions in core.
I have a small programm called watch (2KB) running in the background, that
tells the OS : send me a message whenever file xyz is modified.
When this happens watch takes file xyz and starts it as an amiga dos batch
file.
an example:
in the shell I type:
watch file=/ram/xyz command=execute /ram/batch
in the rebol script:
write %/ram/xyz "dir > /work/dirlist.txt"
1. rebol writes the command "dir > /work/dirlist.txt" to the file /ram/xyz
that now looks like:
dir > /work/dirlist.txt
2. The OS sends a message to watch saying "the file to be observed has been
modified."
3. watch executes the command given, i.e. execute /ram/xyz
4. at execution the batch file starts the dir command that outputs the list
of the directory to the file /work/dirlist.txt
In this example I started a dos command.
But one can start an ARexx script too, of course.
And ARexx (in combination with the rxgen.library) is able to call any
function the AmigaOS API provides.
So for every OS function I'd like to call I have to write a rebol function
and an arexx script.
You can imagine that this is quite time consuming. And I will not continue
this work if there will be a port of /command to AmigaOS.
Until now I tried implemented the following functions:
from dos.library:
Delay ; like wait
from exec.library
AllocVec ; allocate memory
FreeVec ; free it again
from intuition.library
EasyRequestArgs ; opens a dialog window and returns number of button
selected
DisplayBeep ; Flashes the screen/outputs a beep sound
example script:
REBOL []
do %AmigaOS
MODULE [dos intuition]
for i 1 5 1 ; do this 5 times
[
Delay(100) ; wait 100 ticks=2 seconds
DisplayBeep(NIL) ; Flashes screen
]
CleanUp() ; ensures that all memory that has been allocated
using OS functions will be freed again.
I hope you could follow my explanations.
Ciao,
Jean
[5/6] from: mat:eurogamer at: 30-Nov-2000 15:19
Heya Jean,
HJ> I hope you could follow my explanations.
Certainly, very nice workaround. How I wish the Amiga survived
, it was a wonderful thing :)
--
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com
[6/6] from: gchiu:compkarori at: 1-Dec-2000 5:58
Hi Mat,
> Certainly, very nice workaround. How I wish the Amiga
> survived
> , it was a wonderful thing :)
I think you could do something like this in Win32 or
whatever.
Create a batch file in your cgi-bin directory, and then call
your web server to execute it.
Having said that, I also note that Amiga Forever V4.0 has
just been released.
--
Graham Chiu