It does this because the file I am loading with the .sklm suffix is a new file
that eventually replaces(via the script) the IBM supplied java.security. Here
is a snippet of that code:
if test $SMP_Phase = POST
then
echo "MCKL001S: SMP_Phase = POST"
if test $SMP_Action = COPY
then
echo "MCKL001S: SMP_Action = COPY"
cd $SMP_Directory/.. # Set the working directory for cp
if test -e lib/security/java.security.backup
then
echo "MCKL001S: java.security.backup already exists."
else
echo "MCKL001S: Create default java.security.backup "
cd lib/security
cp -mv java.security java.security.backup
status=$? # Get the status of the cp command
cd ../..
if test $status -ne 0 # If cp failed, indicate so to the user
then
echo "MCKL001S: cp command failure: cp ended with status $status"
else
echo "MCKL001S: cp command successfully completed backup."
echo "MCKL001S: cp now loading modified java.security."
cd lib/security
cp -mv java.security.sklm java.security
status=$? # Get the status of the cp command
cd ../..
if test $status -ne 0 # If cp failed, indicate so to the user
then
echo "MCKL001S: cp command failure: cp ended with status $status"
else
echo "MCKL001S: cp command successfully copied modified java.security"
fi
fi
fi
_________________________________________________________________
Dave Jousma
Assistant Vice President, Mainframe Engineering
[email protected]
1830 East Paris, Grand Rapids, MIĀ 49546 MD RSCB2H
p 616.653.8429
f 616.653.2717
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf
Of Kurt Quackenbush
Sent: Thursday, August 21, 2014 9:01 AM
To: [email protected]
Subject: Re: SMP/E needed: ++HFSUPD
> ++ HFS (MCKL001J) /* $java_home/lib/security/java.security.sklm */
> DISTLIB (AAJVHFS)
> SYSLIB (SAJV17K)
> PARM (PATHMODE(0,6,4,4))
> LINK ('../lib/security/java.security.sklm')
> SHSCRIPT (MCKL001S,POST)
> TEXT .
>
> The shellscript MCKL001S in my case handles the pre-copy backup of the
> affected files, ...
While I don't know exactly the content of your shell script, I'm confused how
it makes a copy of the target file "pre-copy" as you say since the
specification on the SHSCRIPT operand says "POST". This means SMP/E invokes
the shell script only after the copy operation, not before. You can of course
specify both PRE and POST on SHSCRIPT, thus telling SMP/E to invoke the shell
script both before the copy and after.
Kurt Quackenbush -- IBM, SMP/E Development
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to
[email protected] with the message: INFO IBM-MAIN
This e-mail transmission contains information that is confidential and may be
privileged. It is intended only for the addressee(s) named above. If you
receive this e-mail in error, please do not read, copy or disseminate it in any
manner. If you are not the intended recipient, any disclosure, copying,
distribution or use of the contents of this information is prohibited. Please
reply to the message immediately by informing the sender that the message was
misdirected. After replying, please erase it from your computer system. Your
assistance in correcting this error is appreciated.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN