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:
Donna Garverick <[log in to unmask]>
Reply To:
Donna Garverick <[log in to unmask]>
Date:
Thu, 3 May 2001 09:30:23 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (65 lines)
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 *

ATOM RSS1 RSS2