I'm trying to create a ARexx script that ever X number of minutes will execute a shell script. I'm a total noob to ARexx programming but
here are my efforts so far:
* testscript för loop */
s:hej.scr contains one line:
echo HELLO!
Now, I get no output from s:hej.scr. I tried to add
GetEnv("minoutput") to the ARexx script but that doesn't work. Also,
I can't kill the ARexx script once it's running, either by pressing
ctrl-c or trying to close the shell window.
* testscript för loop */
do forever
if ~show('L','rexxsupport.library') then
call addlib('rexxsupport.library',0,-30)
'execute s:hej.scr >Env:minoutput'
call delay(250)
end
Can anyone explain what I'm doing wrong here?
Hello Joacim!
08 Jan 18 20:03, you wrote to all:
I'm trying to create a ARexx script that ever X number of minutes will
execute a shell script. I'm a total noob to ARexx programming but
here are my efforts so far:
* testscript för loop */
I can't comment on the ARexx script, but when you want to execute a
script every x minutes, why don't you just use a cron for AmigaOS? I
used to use cybercron for that purpose.
s:hej.scr contains one line:
echo HELLO!
Now, I get no output from s:hej.scr. I tried to add
GetEnv("minoutput") to the ARexx script but that doesn't work. Also,
I can't kill the ARexx script once it's running, either by pressing
ctrl-c or trying to close the shell window.
Silly question: did you added the script bit to the file? protect +s s:hey.scr
Ingo
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 906 |
Nodes: | 10 (0 / 10) |
Uptime: | 235:53:37 |
Calls: | 12,038 |
Calls today: | 1 |
Files: | 186,478 |
Messages: | 2,215,158 |