Operating System - HP-UX
1833389 Members
2905 Online
110052 Solutions
New Discussion

Not able to run the scipt

 
Depot Script
New Member

Not able to run the scipt

Hi,

I am not able to run the script of create deport

Following is the error

# ./create_depot_hpux.11.23
/sbin/sh: ./create_depot_hpux.11.23: Execute permission denied.

I am running as root and prmitions are also to the root of this dir.

Thanks,
Amol
12 REPLIES 12
Siju Vadakkan
Trusted Contributor

Re: Not able to run the scipt

Seems file doesn't have execute permission.
change the permission.
chmod 755 create_depot_hpux.11.23
Yogeeraj_1
Honored Contributor

Re: Not able to run the scipt

hi Amol,

can you post the output of the following command:
ll ./create_depot_hpux.11.23


revert
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Depot Script
New Member

Re: Not able to run the scipt

# ll ./create_depot_hpux.11.23
-rwxrwxrwx 1 root sys 6072 Mar 8 11:48 ./create_depot_hpux.11.23



I have tried with permitions 777 , after changing the permition ti gives error of file not found

I have tried with entering with full path also

But it is not working with all the way

Can you please guide me acutulay how apply the patches in HP-Unix

Means should I run first the creat_depot afer that i should run the "swintall" command with depot file

Thanks,
Amol
Yogeeraj_1
Honored Contributor

Re: Not able to run the scipt

hi amol,

one simple way to install a patch is to use swinstall and then you just specify the full path to the .depot file.

what are you trying to achive?

did you go through the installation instructions?

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Depot Script
New Member

Re: Not able to run the scipt

I am installing Oracle10g R2

for that oracle recommanded following patches

11.23 (Itanium) required patches:
The following operating system patches:
o BUNDLE11i B.11.23.0409.3: Patch Bundle for HP-UX 11i V2

Note: You must have the August 2004 version of BUNDLE11i B.11.23.0408.1 for HP-UX 11i v2 on your system prior to updating to the HP-UX 11i v2 September 2004 or later release.
o PHCO_32426
o PHKL_32646 s/b PHKL_36103
o PHKL_32632 s/b PHKL_33656 s/b PHKL_33807 o PHKL_32645 s/b PHKL_34477 s/b PHKL_37106 o PHKL_33552 s/b PHKL_33563 s/b PHKL_36667 o PHSS_31850 s/b PHSS_34040 s/b PHSS_37201 s/b PHSS_37492 o PHSS_31851 s/b PHSS_34043 s/b PHSS_34859 s/b PHSS_37498 o PHSS_31854 s/b PHSS_33357 s/b PHSS_34045 s/b PHSS_34445 o PHSS_31855 s/b PHSS_33350 s/b PHSS_34041 s/b PHSS_35055 s/b PHSS_36343 o PHSS_33275 s/b PHSS_33349 s/b PHSS_34040 s/b PHSS_37201 s/b PHSS_37492 o PHSS_33276 s/b PHSS_34042 s/b PHSS_34853 s/b PHSS_36344
---------------------------------------------

Following is the readme

HP-UX Patch Bundling Instructions

Patches can be bundled into one swinstall depot. This can save time
because all patches are installed in one operation. A single depot also
avoids multiple kernel builds and reboots.

Separate depots are needed for each HP-UX release. A create_depot_hp-ux
script is included for each release. For example, create_depot_hp-ux_11
will create a depot of patches for HP-UX 11.X.

System Requirements
-------------------

1. Disk Space

The depot creation process expands the download file, unpacks the
patch sharfiles, unpacks the patch .depot files, and copies them to
the "depot" directory. The entire process requires about six times
the size of the original patch download. The final "depot" directory
is about twice the size of the original patch download.

2. Operating System

To create a 10.X depot, use a 10.X or 11.X system.
To create a 11.X depot, use an 11.X system.


Creating a depot
----------------

1. Move the patch download file to a file system with enough free space.
These instructions assume "/tmp/patches".

2. Run the create_depot script as user "root". create_depot_hp-ux_11
must run on a 11.X system. The create_depot_hp-ux script unpacks the
patches, and uses swcopy to create the /tmp/patches/depot directory.

3. After the depot is created, remove the individual patches, .text, and
.depot files.

4. If you are creating more than one depot, rename the
/tmp/patches/depot directory, and remove /tmp/patches/depot.psf.


Installing the depot
--------------------

1. On the target system, run swinstall. Enter the Source Host Name.
The Source Depot Path is "/tmp/patches/depot".

2. Further instructions are available on the swinstall man page. Type
"man swinstall".
---------------------------------------------

Can you please tell me how it works....

Or can you please give the Support no. for HP-Unix ( globle no.)

Thanks,
Amol



Yogeeraj_1
Honored Contributor

Re: Not able to run the scipt

hi,

it could also be a defective download or missing dependencies that is causing the "create_depot_hpux.11.23" to fail.

can you confirm that the patch bundles were downloaded from:
http://www11.itrc.hp.com/service/patch/releasePage.do?BC=patch.breadcrumb.main|patch.breadcrumb.bundle|releaseIndexPage|&releaseId=0712-11.23


For HP Support, please refer to:
http://welcome.hp.com/country/us/en/contact_us.html


kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Dennis Handly
Acclaimed Contributor

Re: Not able to run the scipt

# ./create_depot_hpux.11.23
/sbin/sh: ./create_depot_hpux.11.23: Execute permission denied.

You can also get this error if the shell interpreter (#!) in create_depot_hpux.11.23 isn't executable.

So do you have /bin/ksh? And the transition link from /bin to /usr/bin?
Siju Vadakkan
Trusted Contributor

Re: Not able to run the scipt

1. go to the directory where ur patches are copied and create a directory /var/depot
and copy and paste the below commands.

SUPPOSE UR PATCHES ARE IN /var/patch



ll | awk '{print $9}' | grep PH | while read a
do
echo "unsharing $a"
sh $a
echo "copying $a to depot"
swcopy -x enforce_dependencies=false -x mount_all_filesystems=false -s /var/patch/$a.depot \* @/var/depot
done


2. Install the patch from newly created depot "var/depot" , -p runs in preview mode and then remove -p for actual installation.

swinstall -p -s /var/depot \*
Sajjad Sahir
Honored Contributor

Re: Not able to run the scipt

I think u put space there
./create between u directory and this script no need space do
one thing
first u type manually up to ./create then copy the rest part with them
i am sure it will execute.
Peter Nikitka
Honored Contributor

Re: Not able to run the scipt

Hi,

perhaps the file was saved with CR+LF.
Open it with 'vi' and look for ^M at the end of the lines.
Having removed these characters, the script will run successfully.

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Yogeeraj_1
Honored Contributor

Re: Not able to run the scipt

Hi again,

Also ensure that the patches will transferred in binary mode to the server in case you downloaded it somewhere else before transferring to the server in question.

hope this helps too!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Mounaam
Trusted Contributor

Re: Not able to run the scipt

Hi,

check also that the filesystem where you put your script is mounted with exec option.