what about a shell script like
for ACCOUNT in `callci "SHOWJOB JOB=@S"|grep "#S"|cut -d "." -f 2,2|sort -d -u`
do
SESS_NUM=`callci "SHOWJOB JOB=@S"|grep -c "$ACCOUNT"`
echo There are $SESS_NUM Sessions in account $ACCOUNT.
# callci TELL specific session or TELLOP There are $SESS_NUM Sessions in
account $ACCOUNT.
done
Output will look like
RUN SH.HPBIN.SYS;INFO="XAS1"
There are 9 Sessions in account SYS.
There are 1 Sessions in account XEXFER.
Instead of the echo you may use a callci TELLOP or TELL like in the # line.
Best regards, Andreas Schmidt, CSC, Germany
[log in to unmask] on 08/18/98 10:09:00 PM
Please respond to [log in to unmask]
To: [log in to unmask]
cc: (bcc: Andreas Schmidt/HI/CSC)
Subject: Session Checking for a Specific Account
My company has a Stream Job on our HP3000 that can only run if all SESSIONS
are logged of a specific account. The problem is the only way we know to
check to see if there is any sessions logged on is to use the HP variable
HPSESCOUNT in a IF test (IF HPSESCOUNT = 0 THEN ...) in a stream job.
This works 90% of the time except when a person forgets to log off the
console. Does anybody know of a way to check for SESSIONS (Not Jobs) in a
specific account tha can be used like the above IF test.
Thanks in advance
Patrick K. Faloney
Systems Analyst
STB Systems
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum