Language
Showing results for 
Search instead for 
Do you mean 

Pass a an argument from posix to mpe.

Occasional Advisor

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."
1 REPLIES
Trusted Contributor Trusted Contributor

Re: Pass a an argument from posix to mpe.

Did you try the following:

callci "switchlog" ?

Hope this helps !