HP3000-L Archives

January 2001, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Bixby <[log in to unmask]>
Reply To:
Mark Bixby <[log in to unmask]>
Date:
Tue, 9 Jan 2001 11:22:14 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (31 lines)
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...

ATOM RSS1 RSS2