AIX

 View Only

 Unable to Zip file through shell script

Venu Sivaraman's profile image
Venu Sivaraman posted 08/11/26 02:24 AM
I have HMC scanner report running in root's cron which zip the excel file send in mail. After Installing latest AIX e-fixes, zip operation through the cron script is not working. However it is executed if i run zip manually. 
 
Error:
exec(): 0509-036 Cannot load program zip because of the following errors:
        0509-130 Symbol resolution failed for zip because:
        0509-136   Symbol _GLOBAL__AIXI_libbz2_so (number 87) is not exported from
                   dependent module /usr/lib/libbz2.a(libbz2.so.1).
        0509-136   Symbol _GLOBAL__AIXD_libbz2_so (number 88) is not exported from
                   dependent module /usr/lib/libbz2.a(libbz2.so.1).
        0509-192 Examine .loader section symbols with the
                 'dump -Tv' command.
 
server1:root:[/home/root]:# ls -l /usr/lib/libbz2.a
lrwxrwxrwx    1 root     system           25 Aug 06 05:29 /usr/lib/libbz2.a -> /usr/opt/rpm/lib/libbz2.a
server1:root:[/home/root]:# ls -l libbz2.so*
ls: 0653-341 The file libbz2.so* does not exist.
server1:root:[/home/root]:#
Alexander Pettitt's profile image
Alexander Pettitt

# lslpp -w /usr/lib/libbz2.a
  File                                        Fileset               Type
  ----------------------------------------------------------------------------
  /usr/lib/libbz2.a                           rpm.rte               Symlink

# ls -l /usr/lib/libbz2.a
lrwxrwxrwx    1 root     system           25 Jul 28 07:58 /usr/lib/libbz2.a -> /usr/opt/rpm/lib/libbz2.a

Ayappan P's profile image
Ayappan P

Can you try adding "-Djava.library.path=/opt/freeware/lib:/usr/lib" in the java command inside the script ?