HP3000-L Archives

October 2000, Week 4

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:
Kevin Smeltzer <[log in to unmask]>
Reply To:
Kevin Smeltzer <[log in to unmask]>
Date:
Thu, 26 Oct 2000 15:33:23 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (39 lines)
Yes MPEX can add a "user" attribute to a program.

You will need to restrict/allow the
withcaps use in your streamx.data.vesoft file.
example:
$withcaps-permit @.payroll        ping.cmd.system       "NM,NA"

Modify 'elseif' section to your naming conventions needs, and IP addresses.

:print ping.cmd.system
parm ip_address="", nbr_of_pings=5
comment
comment  name:      ping ip_address [nbr_of_pings=5]
comment
comment  This command file must be executed within MPEX or a Security
comment  menu.  The command allows the user to ping any other unix or
comment  MPE machine.  Unfortunately the IP address of the machine must
comment  be passed as a parameter, the machine's name cannot currently
comment  be used.
comment
setvar insidempex 0
if insidempex = 0 then
   main.pub.vesoft "ping !ip_address,!nbr_of_pings",1
   return
else
  if ("!ip_address" = "") then
    input _ip_address;prompt="Enter an IP address (0.0.0.0) -> "
  elseif (UPS("!ip_address")="LP") then
    setvar _ip_address "XXX.XXX.XXX.XXX"
  elseif (UPS("!ip_address")="LP1") then
    setvar _ip_address "XXX.XXX.XXX.XXX"
  else
    setvar _ip_address "!ip_address"

  endif
  withcaps "NA,NM", ping.net.sys "!_ip_address,!nbr_of_pings"
  deletevar _ip_address
endif

ATOM RSS1 RSS2