aliasing in OBP

Hi,

I was wondering whether it is possible to set an alias to a string in the OBP (and not some device path).

For eg:

Would it be possible for me to alias something like this:

jumpstart "net - install"

Such that I can run "boot jumpstart" from the ok prompt to run the "net - install" option.

TIA,

Dwai.

[359 byte] By [dwlahiri] at [2007-11-25 23:18:04]
# 1

I'm not aware of a method to script commands directly within the OK prompt (Forth Monitor). However, you may be able to accomplish your task using the Forth Language (scripting language) that's built into the OBP of Sun SPARC servers. Of course, I'm assuming you are using SPARC and not Intel.

I know of one manual that you could obtain from docs.sun.com (PDF file I believe) that contains information on the Forth Language.

Bob

bhf21279 at 2007-7-5 18:06:32 > top of Java-index,General,Talk to the Sysop...
# 2
Thanks Bob...I am using SPARC. Trying this out on an Ultra-5.Thanks,Dwai.
dwlahiri at 2007-7-5 18:06:32 > top of Java-index,General,Talk to the Sysop...
# 3

According to Sun Support, any kind of aliasing can be done only when a file exists on the system (and only corresponding to any physical device).

:(

Also, even if I wrote something in Forth for my purpose, I'd have a really tough time propagating it to all my jumpstart clients (since it is needed for "easy" installations).

dwlahiri at 2007-7-5 18:06:32 > top of Java-index,General,Talk to the Sysop...
# 4
Well, you would think that as strong as Forth is, there would be a way to handle a remedial script!! Maybe not!Thanks for the update... I'll certainly keep this one for future reference!
bhf21279 at 2007-7-5 18:06:32 > top of Java-index,General,Talk to the Sysop...