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

rebol and boot path

 [1/5] from: petr::krenzelok::trz::cz at: 29-Jun-2001 11:46


Hi, just small note - wouldn't it be better for rebol to look for user.r file (and all script run with path-less parameter on the same path as path to .exe is specified): c:/pekr/rebol/command/rebolcmd.exe cookies.r ? I have to copy my user.r into fast-cgi directory or it is not executed. Apache directive will not let me start rebolcmd.exe with additional parameters ... I would imo save us from few problems ... -pekr-

 [2/5] from: chris:starforge:demon at: 29-Jun-2001 12:15


Petr Krenzelok wrote:
> Hi, > > just small note - wouldn't it be better for rebol to look for user.r > file (and all script run with path-less parameter on the same path as > path to .exe is specified):
Isn't there a REBOL_HOME environmental variable you can set to set the location of these files? Chris -- New sig in the works Explorer2260 Designer and Coder http://www.starforge.co.uk

 [3/5] from: petr:krenzelok:trz:cz at: 29-Jun-2001 14:14


Chris wrote:
> Petr Krenzelok wrote: > > Hi,
<<quoted lines omitted: 4>>
> Isn't there a REBOL_HOME environmental variable you can set to set the > location of these files?
So, 1) How/where to set such variable under W2K? 2) is the current aproach really practical? Let's say some externall app launches your rebol, so e.g. apache, so you inherit launcher app directory and you have to specify e.g. c:/pekr/rebol/command/rebol.exe -cs c:/pekr/rebol/command/my-script.r and you are left with following problems: a) it will look for user.r file in launcher app directory b) try to use View and -i switch - it will be ignored (which I reported being a bug) and you will end up with installation screen. View needs two additional files, or it will try install itself ... c) what if you have more rebol exes scattered on your hd? Which of them will you choose as REBOL_HOME? -pekr-

 [4/5] from: mbicanic:open:hr at: 29-Jun-2001 20:57


PK> Chris wrote: PK>> Petr Krenzelok wrote: PK>>> Hi, PK>>> PK>>> just small note - wouldn't it be better for rebol to look for user.r PK>>> file (and all script run with path-less parameter on the same path PK>>> as path to .exe is specified): PK>> Isn't there a REBOL_HOME environmental variable you can set to set the PK>> location of these files? PK> So, PK> 1) How/where to set such variable under W2K? Ask Bill. :) BTW maybe NT example helps you - see /core UG 2.3 page 1-13... PK> 2) is the current aproach really practical? Yes, and can be used on multiuser platform. PK> Let's say some externall app launches your rebol, so PK> e.g. apache, so you inherit launcher app directory and you have to PK> specify e.g. c:/pekr/rebol/command/rebol.exe -cs PK> c:/pekr/rebol/command/my-script.r and you are left with following PK> problems: PK> a) it will look for user.r file in launcher app directory Yes, but if it is not there (with rebol.r) it will look in env var. PK> b) try to use PK> View and -i switch - it will be ignored (which I reported being a bug) PK> and you will end up with installation screen. View needs two additional PK> files, or it will try install itself ... Set REBOL_VIEW to /path/to/view . PK> c) what if you have more rebol PK> exes scattered on your hd? Which of them will you choose as REBOL_HOME? Last version of REBOL/Core. :) Sorry don't know about /command... regards.mb

 [5/5] from: petr:krenzelok:trz:cz at: 29-Jun-2001 23:35


> PK> 2) is the current aproach really practical? > > Yes, and can be used on multiuser platform.
No, it isn't, unless ... se below :-)
> PK> Let's say some externall app launches your rebol, so > PK> e.g. apache, so you inherit launcher app directory and you have to
<<quoted lines omitted: 6>>
> PK> View and -i switch - it will be ignored (which I reported being a bug) > PK> and you will end up with installation screen. View needs two
additional
> PK> files, or it will try install itself ... > > Set REBOL_VIEW to /path/to/view .
OK, then answer two following cases: 1) I want to start rebol process once I log into Netware server. I put following line into my login script: #F:\path\to\rebol -si F:\path\to\rebol\some-script.r ... and you know what? You will be asked for installation, even if -i switch was used. I can't see it correct, not even practical. If -i switch is supposed to save us from installation, it should do so in all cases.The problem is with edit-prefs.r and prefs.r, which are needed. But how do I tell rebol to look for them on the path given in above launch case? ;-) workaround: #F:\path\to\rebol\app.bat where first line of bat is "cd current-dir" 2) How do env variables help you, if you use several instances of View on your hd? workaround & suggestion - introduce new switch -b (boot), to allow us to specify, what directory should rebol boot from ... possible? -pekr-

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted