HP3000-L Archives

May 2001, Week 1

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:
"Jonathan M. Backus" <[log in to unmask]>
Reply To:
Date:
Thu, 3 May 2001 12:47:35 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (101 lines)
Donna,

        The one thing you want to be careful about with this example is to make
sure you allow "parm=-1" on HELLO.  If this is the system wide UDC and
somebody purges the "logon.cmd.sys" file everybody will say HELLO fail the
finfo check and automatically be logged off.  The only way to get around the
"lock-out" would be to logon as SM with "-1" to bypass the cataloging of the
UDC.

Thanx,
  Jonathan (Jon) M. Backus, MPE-CSM ~ President
  Tech Group ~ 15 Catawba Place ~ Hagerstown, MD ~ 21742-6515
  Email: [log in to unmask] ~ AIM: JMBackus
  Vmail: 301.988.0614 ~ Fmail: 301.714.1854
  Web: www.TechGroupMD.com


-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]]On
Behalf Of Donna Garverick
Sent: Thursday, May 03, 2001 12:30 PM
To: [log in to unmask]
Subject: Re: mpe script for menu at logon


Rich Farrar wrote:

> I'm trying to set up a simple menu so users can choose after their hello
> logon between entering our manufacturing module, running a QUIZ report, or
> downloading a file. Basically a simple A) MANMAN B) QUIZ C)DOWNLOAD
choice,
> I don't think this should be too difficult to put in an option logon udc,
my
> problem is I have little experience with MPE scripting. Can anyone point
me
> to some snippets of script to get me started on this? Any help greatly
> appreciated. At the moment we are running V6.0.

i'd suggest attacking this problem in two steps....  first, with a logon udc
that executes a script.  i'd further suggest that this udc includes a 'bye'
at
the end (but that's your call....)  the second part is the script itself.

here's an example of a logon udc that does what i've described:

logon
option logon, nobreak, nolist, nohelp
if finfo('logon.cmd.sys','exists')
  xeq logon.cmd.sys
endif
bye
***

the checking for the existence of the logon script file is probably not a
bad
idea.  it's one of those 'cya' things :-)  (of course, the naming and
location
of the script may need adjusting to fit your environment.  here, .cmd.sys is
part of everyone's hppath)

within the logon script, you'd probably want to set up a while loop that
goes
until the user opts to leave.  something like:

setvar done false
while not done
  <do a bunch of echo's>
  <get a menu option>
  <evaluate the input>
  <do something if 'exit' wasn't picked>
  <if 'exit' was picked, set done to true>
endwhile

imo, mpe scripting is very powerful and an admin's friend.  you might want
to
check:
<http://docs.hp.com/mpeix/onlinedocs/32650-90493/32650-90493.html>

this manual pretty well explains the fundamentals of mpe scripting.  you'll
probably also want to check:
<http://jazz.external.hp.com/papers/SolSymposium_01/CIprogramming/index.htm>

this builds on the first and should start 'turning on the lightbulb' :-)
hth        - d

--
Donna Garverick     Sr. System Programmer
925-210-6631        [log in to unmask]

"Unix _is_ user friendly.
It's just very selective about who its friends are.
And sometimes even best friends have fights."

>>>MY opinions, not Longs Drug Stores'<<<

* 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