HP3000-L Archives

August 2002, Week 3

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:
"Taylor, Joe" <[log in to unmask]>
Reply To:
Date:
Wed, 21 Aug 2002 14:52:50 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (69 lines)
I'm trying to write a script in POSIX to delete users out of Security 3000
given a file that contains a list of session ids only and then create a file
that contains logon ids for all AMISYS accounts that user was allowed access
to.
I can run the callci from the shell for an individual user without problems,
but when I put it in a loop to execute I get the following error messages.
Any help would be appreciated. Thanks.

cat Aug21

Error: Doing Fopen of $STDINX.
The redo stack cannot be created, REDO is disabled. (CIWARN 9009)
-----Will delete E63240J ,AJ      .AIHWORK
-----Will delete E63240J ,ISDEV   .AIHY2K
-----Will delete E63240J ,ISDEV   .ADVANTA
-----Will delete E63240J ,ISDEV   .AIHWORK
-----Will delete E63240J ,ISDEV   .ADVANTA    (inheriting from E63240J
,ISDEV
.AIHWORK )
-----Will delete E63240J ,ISDEV   .AIHY2K     (inheriting from E63240J
,ISDEV
.ADVANTA )
-----Will delete E63240J ,AJ      .AIHWORK    (inheriting from E63240J
,ISDEV
.AIHY2K  )
Error: Doing Fopen of $STDINX.

END OF PROGRAM



set -x                # set tracing on
LISTUSER="LISTUSER "
DELETE="DELETE "
NOVERIFY=";NOVERIFY"
id=",@.@"

rm logon_ids
rm delcmds

for session in `cat ids`
do
  echo $DELETE $session$id$NOVERIFY >> delcmds
  vecmd="$LISTUSER $session$id"

  callci "run main.pub.vesoft,sec;info='$vecmd'" > accounts

  sed '1,12d' accounts > tmp_accts

  awk '{if ($1 != "***" && $1 != "END" && $1 != "")   \
    print $3","$2"."$1}' tmp_accts >> logon_ids
done

dt=`date +%b%d`

 while read line
 do
  callci "run main.pub.vesoft,sec;info='$line'" >> $dt
 done < delcmds

set +x                 # set tracing off


 cat delcmds
DELETE E63240J,@.@;NOVERIFY

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2