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 15:33:20 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (106 lines)
Ron,

  We are going to be moving to a UNIX environment and so I'm trying to use
this as an exercise for learning UNIX scripting.

Joe

-----Original Message-----
From: Ron Horner [mailto:[log in to unmask]]
Sent: Wednesday, August 21, 2002 3:10 PM
To: [log in to unmask]; [log in to unmask]
Subject: Re: POSIX script and Security 3000


I have to ask a stupid question.  Why write a script in POSIX when writing
it in VESOFT would be much easier and better?

Ron Horner
HP3000 Systems Administrator
JCPenney Logistics
[log in to unmask]
(414) 259-2274
AIM: hornerrr
----- Original Message -----
From: "Taylor, Joe" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Wednesday, August 21, 2002 1:52 PM
Subject: POSIX script and Security 3000


> 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 *
>

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

ATOM RSS1 RSS2