Stan Sieler wrote:
> So, I created two files:
>
> /usr/local/bin/classes.part1 (marked: chmod +x)
> and
> CLASSES.CMD (in my HPPATH path)
>
> /usr/local/bin/classes.part1 is two lines (the second line is a longgg line):
> rm -f /tmp/classes.tmp
> callci "DSTAT ALL" | grep " MASTER " | cut -d "(" -f2 | cut -d "-" -f1 | xargs -iX echo volutil \"showset X classes\" >> /tmp/classes.tmp
>
> CLASSES.CMD is:
> run sh.hpbin.sys;info="/usr/local/bin/classes.part1"
> xeq /tmp/classes.tmp
> purge /tmp/classes.tmp
>
> Obviously, two users couldn't use this at the same time.
With a little tweaking, multiple users could indeed use it at the same time:
rm -f /tmp/classes.tmp.$$
callci "DSTAT ALL" | grep " MASTER " | cut -d "(" -f2 | cut -d "-" -f1 |
xargs -iX echo volutil \"showset X classes\" >> /tmp/classes.tmp.$$
. /tmp/classes.tmp.$$
rm -f /tmp/classes.tmp.$$
And remove the xeq and purge from CLASSES.CMD.
--
[log in to unmask]
Remainder of .sig suppressed to conserve scarce California electrons...