[REBOL] Re: Tom Colin's auto run script
From: tomc:darkwing:uoregon at: 13-Sep-2003 10:14
On Sat, 13 Sep 2003, John-Harbaugh wrote:
> I ran the following 4 lines of code (one at a time of course)
> and got the error "** Script Error:" listed at the bottom, for all of them?
> #!/rebol/rebol -sq --do "do http://autx.tzo.net/cgi-bin/test_con_2.r"
> #!/rebol/rebol -sg --do "do %test_con_2.r"
the -sg is a typo
shebang lines "#!"
are for the top of scripts executed in a shell enviroment
in a shell enviroment I would use a shell script.
> /rebol/rebol -sq --do "do http://autx.tzo.net/cgi-bin/test_con_2.r"
> /rebol/rebol -sg --do "do %test_con_2.r"
I use lines such as these in WindowsXP Shortcut's Properties/Target
they work fine. here is one pasted from a shortcut on my desktop
C:\rebol\view\rebol.exe -sq --do "do http://www.cs.uoregon.edu/~tomc/dict.r"
I would be suprised if that is the only place this construct worked