Operating System - HP-UX
1833578 Members
3480 Online
110061 Solutions
New Discussion

Re: patch depot and execution

 
Chris Fadrowski
Super Advisor

patch depot and execution

I am trying to make a patch depot to execute 14 patches at one time. I am to the part in which i need to unpack them. I did the

for i in PH*
>do
>sh $i
>done

but i keep getting "execute permission denied"

I did a chmod on the patches and they list drwxrwxrwx 6 root sys PHKL_*****

Why can't i execute these. i try them one at a time and get the same message.
6 REPLIES 6
Edward Alfert_2
Respected Contributor

Re: patch depot and execution

There is another posting that is being answered in parallel right now...

look at the last answer by Ramesh... He recommends not using sh $i but swcopy...

See if that works for you:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x53ec660142b2d5118ff10090279cd0f9,00.html
"Do what you love and you will never work a day in your life." - Confucius
paul courry
Honored Contributor

Re: patch depot and execution

You also might want to search this forum and keywords courry and ignite. I had a thread on adding things to a depot and it included clear instructions.
James R. Ferguson
Acclaimed Contributor

Re: patch depot and execution

Hi Chris:

If I read your post correctly, you indicate the the patches are really directories! This would give the execute permission denied error. "PH*" should expand to a list of files.

Regards!

...JRF...
Michael Tully
Honored Contributor

Re: patch depot and execution

linuxfan
Honored Contributor

Re: patch depot and execution

Hi,

First of all looks like you have PH*.depot files,
when you try to unshar *.depot files you get "Execute permission denied" errors.

If the patches have not been unsharred, then there will be no extension (.depot or .text)
if not just do

cd /tmp
for i in $(ls -1 PH* |egrep -v 'depot|text')
do
sh $i
done

for i in PH*.depot
do
swcopy -s /tmp/$i \* @ /tmp/mypatches.depot
done

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates