External Client scripts and MACHINE environment
Hi All
I just started using bb-cpu2[1] on ~hobbit/client/ext of version 4.1.2. I am noticing it $MACHINE has no value inside the script while I run a test like this ./bin/bbcmd sh -x ~hobbit/client/ext/bb-cpu2.sh
Here is a google cache of the bb-cpu2 on deadcat.net since the site seems kind a slow now. http://66.102.7.104/search?q=cache:6p53UoHzUEcJ:www.deadcat.net/BB/ext/cpu2+...
I checked all the emails upto Oct 5th and don't think saw a good answer to this problem.
I hate to declare the value of MACHINE inside the script. Any suggestion would be greatly appreciated.
Thanks
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu "..there are two kinds of people: those who work and those who take the credit...try to be in the first group;...less competition there." - Indira Gandhi
On Thu, Nov 17, 2005 at 07:45:24PM -0500, Asif Iqbal wrote:
I just started using bb-cpu2[1] on ~hobbit/client/ext of version 4.1.2. I am noticing it $MACHINE has no value inside the script while I run a test like this ./bin/bbcmd sh -x ~hobbit/client/ext/bb-cpu2.sh
It *is* set when you run the script as a client extension, because $MACHINE is set by the "runclient.sh" script that starts up the client. It sets these: MACHINE MACHINEDOTS BBOSTYPE HOBBITCLIENTHOME
But it would be nice if you could test client scripts just with bbcmd. I'll see if I can make bbcmd pick up default settings for the MACHINE, MACHINEDOTS and BBOSTYPE settings. Meanwhile, you can test your script with
HOBBITCLIENTHOME=pwd
MACHINEDOTS=my.local.hostname
MACHINE=my,local,hostname
BBOSTYPE=linux
./bin/bbcmd --env=/usr/lib/hobbit/client/etc/hobbitclient.cfg
-x ~hobbit/client/ext/bb-cpu2.sh
Henrik
participants (2)
-
henrik@hswn.dk
-
iqbala-hobbit@qwestip.net