HP3000-L Archives

August 1999, Week 2

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:
Tom Emerson <[log in to unmask]>
Reply To:
Tom Emerson <[log in to unmask]>
Date:
Wed, 11 Aug 1999 09:37:43 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (55 lines)
BIXBY,MARK (HP-Cupertino,ex1) wrote in message ...
>> -----Original Message-----
>> From: [log in to unmask] [mailto:[log in to unmask]]
>>
>> I would like to run a job that automatically increase the group size.
>> I had written an awk script which I ran from a job using
>>
>>      REPORT;ONVS=APPL_VOL > TMP
>>      AWK.HPBIN.SYS "-f DSKSPACE" < TMP
>>
>> then I would like to run from the AWK script the following command
>>
>>   system("/VESOFT/AUDITC/ALTGROUP TEST;ONVS=APPL_VOL;FILES=40000000")
>>
>> but it gave me this error
>>
>>   /VESOFT/AUDITC/ALTGROUP: cannot execute: Permission denied
>>
>> Please advise...thanks!
>
>I need to know exactly what /VESOFT/AUDITC/ALTGROUP is -- NMPRG, PROG, or
CI
>command file?
>
>If it's an NMPRG, you should be doing:
>
>system("/VESOFT/AUDITC/ALTGROUP TEST\;ONVS=APPL_VOL\;FILES=40000000")
>
>Note the use of \ to escape the semicolons which have meaning to the POSIX
>shell which gets invoked when you do system().
>
>If it's a PROG or CI command file, you should do:
>
>system("callci /VESOFT/AUDITC/ALTGROUP
TEST\;ONVS=APPL_VOL\;FILES=40000000")


Unfortunately, it is neither.  It is an internal MPEX command file
[expression program, to be exact] and is not executable code nor
recognizable commands to the normal MPE/iX command processor nor the posix
"sh" command processor.

Within MPEX, when you execute a %VEAUDIT command, it looks for an expression
program in the AUDITC group of the VESOFT account and evaluates/runs that
program.  So, one way to do this is to place the command to be executed into
a file and run MAIN.PUB.VESOFT with input redirected to this file, as in:

echo VEAUDIT ALTGROUP TEST;ONVS=APPL_VOL;FILES=40000000 > MPEXCMDS
system ("/VESOFT/PUB/MAIN <MPEXCMDS")

Note that the file you create and ultimately use as the input file should be
in the normal MPE filename space.  also, the semicolons may need to be
escaped in the echo command [I don't know offhand if they are "live" in an
echo command or not]

ATOM RSS1 RSS2