Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Tom Colin's auto run script

 [1/4] from: john-harbaugh::earthlink::net at: 13-Sep-2003 8:06


Tom: 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" /rebol/rebol -sq --do "do http://autx.tzo.net/cgi-bin/test_con_2.r" /rebol/rebol -sg --do "do %test_con_2.r" ** Script Error: -sg has no value. ** Where: -sg --do " (name of file for each) " Dr. J. J. "So far right, I can't see center" Harbaugh King James Only Bible List <mailto:[kjbo--earthlink--net]?subject=subscribe>

 [2/4] from: greggirwin:mindspring at: 13-Sep-2003 8:37


Hi John-Harbaugh, JH> ** Script Error: -sg has no value. ** Where: -sg --do " (name of file for JH> each) " The switches need to be "-sq" (-SQ). There is no "g" command line switch AFAIK. -- Gregg

 [3/4] from: john-harbaugh:earthlink at: 13-Sep-2003 9:49


Gregg: Typo on my part, the code reads -sq, I rechecked it and got the same err9or. John JH> ** Script Error: -sg has no value. ** Where: -sg --do " (name of JH> file for JH> each) " The switches need to be "-sq" (-SQ). There is no "g" command line switch AFAIK. -- Gregg

 [4/4] from: tomc:darkwing:uoregon at: 13-Sep-2003 10:14


On Sat, 13 Sep 2003, John-Harbaugh wrote:
> Tom: > > 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 rebol[] do http://autx.tzo.net/cgi-bin/test_con_2.r
> /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