Re: Pass a an argument from posix to mpe. (179 Views)
Reply
Occasional Advisor
Chris Tijerina_2
Posts: 19
Registered: ‎06-17-2001
Message 1 of 2 (179 Views)

Pass a an argument from posix to mpe.

I have a korn script that I wrote that will audit some files. What I also need it to do is go in to mpe or mpex and do a switchlog, but I am not sure how to pass a command from my korn script, can someone assist? Here is the script:

#!/bin/ksh -x

set -x

/VESOFT/PUB/MAIN
!showjob
!exit

TOCDISC=/DJ/PUB/TOCDISC

echo "You are now auditing the DISC account for OMNIDEX. Please Wait"

for i in `cat ${TOCDISC}`
do
V1=`echo ${i}|/bin/cut -d ":" -f1`
V2=`echo ${i}|/bin/cut -d ":" -f2`
V3=`/bin/ls -s ${V1}|awk '{print $1}'`

if [ ! -f ${V1} ]
then
print "File Missing: ${i}...."
fi

if [ ! -f ${V1} ]
then
cp /SYS/PUB/LOG* /TELESUP/PUB/
fi

if [ ${V2} -ne ${V3} ]
then
print "File: ${i} has a mismatched byte count!! Current count:
${V3}.....Please Correct!!!"
fi
done
"If you choose not to decide, you still have made a choice."
Trusted Contributor
Denis St-Amand
Posts: 89
Registered: ‎02-27-1997
Message 2 of 2 (179 Views)

Re: Pass a an argument from posix to mpe.

Did you try the following:

callci "switchlog" ?

Hope this helps !
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.