Hi group, You can use uv provided subroutine !GET.USERS; search the uvdoc.
If you use in basic EXECUTE "PORT.STATUS INTERNAL" CAPTURING VAR you get the port.status output in a dynamic array VAR ; @am,@vm You can also use in basic VAR=SYSTEM(1301) which return a dynamic Array, each attribute has 4 values: v1: Userno, v2:effective user name, v3: pid, v4: login type similar to what PORT.STATUS would show. Undocumented, but used by APP.PROGS GET.USERS.B No specials ; on uv. I hope this help. Manu > -----Message d'origine----- > De : [email protected] [mailto:u2-users- > [email protected]] De la part de Don Robinson > Envoyé : jeudi 30 décembre 2010 17:46 > À : U2 Users List > Objet : [U2] [UV] PORT.STATUS questions. > > Hello all, > > We are running Universe 11.1.17 on Aix 5.3. > > I use PORT.STATUS for several function within programs by capturing the > output and parsing it. I have a couple of problems with this. > > First, only one user at a time can run the command and this causes random > failure of the programs. > Second, the output can vary depending on options and success or failure of > the command. > > So, is there a callable routine to get the same info in a cleaner way? > > I need things like "is port ### logged in" or a list of ports logged in with a > specific login id, etc. In others words, the same info but in a more usable > format. > > Also, PORT.STATUS from within Universe gives an error for options like PID > and FILEMAP but works ok from the AIX prompt, why? > > Thanks in advance, Don Robinson > _______________________________________________ > U2-Users mailing list > [email protected] > http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users
