HP3000-L Archives

April 1998, 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:
Mark Bixby <[log in to unmask]>
Reply To:
Date:
Fri, 3 Apr 1998 09:19:16 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (43 lines)
Michael Holzer writes:
>
> I try to write an awk script that processes MPE files and should
> execute MPE commands, but the MPE commands fail?
>
> Any idea why?

I'm not sure why your callci test failed, because it works for me:

mbloaner:/BIXBY/PUB$ echo foobar | awk 'BEGIN { system("callci showme") }'
USER: #S24,MARK.BIXBY,PUB       (IN PROGRAM)
RELEASE: C.55.00   MPE/iX HP31900 C.05.08   USER VERSION: C.55.00
CURRENT: FRI, APR  3, 1998,  9:11 AM
LOGON:   FRI, APR  3, 1998,  8:59 AM
CPU SECONDS: 1         CONNECT MINUTES: 12
$STDIN LDEV: 4         $STDLIST LDEV: 4
mbloaner:/BIXBY/PUB$

> SCRIPT: PASPPX.MHODRO
> ------------------------
> BEGIN {
>         system ("callci setvar pas_sql_src false")

Note that "callci setvar" will fail in a batch job.  This is a known callci bug.

>         fs_syntax = "MPE"
>         system ("showvar SCM_UID >pasppuid")

You forgot the callci here.  Be careful doing I/O redirection with callci; it's
easy to confuse POSIX sh redirection (which is what you're doing above):

        callci showjob >outfile

With CI redirection:

        callci 'showjob >outfile'
--
Mark Bixby                      E-mail: [log in to unmask]
Coast Community College Dist.   Web: http://www.cccd.edu/~markb/
District Information Services   1370 Adams Ave, Costa Mesa, CA, USA 92626-5429
Technical Support               Voice: +1 714 438-4647
"You can tune a file system, but you can't tune a fish." - tunefs(1M)

ATOM RSS1 RSS2