Operating System - HP-UX
1832339 Members
2415 Online
110041 Solutions
New Discussion

Re: avoid starting sam using swcopy tocreate a depot from many patches

 
ancel
Occasional Contributor

avoid starting sam using swcopy tocreate a depot from many patches

my problem when i use swcopy -s ... is that for every patch i have in my patches directory sam starts...so..if i have 100 patches..i have to manage windows for every execution of muy script with swinstall...and i would like to know if there is a way not to start sam...it is...process swinstall automatically in command prompt in order not to manage any windows?????? ... thanks in advance for your answer
javivivi
5 REPLIES 5
Francois Bariselle_3
Regular Advisor

Re: avoid starting sam using swcopy tocreate a depot from many patches

Hi,

You can install all patch in one procedure. Try this:

1) Unshare all patch using:

for i in PH*
do
sh $i
done

2) Combine the separate depots into one depot:

mkdir /tmp/patches

for i in PH*.depot
do
swcopy -s ${PWD}/$i \* @ /tmp/patches
done

4) Verify the contents of the depots:

swlist -d @ /tmp/patches

5) Install patch with swinstall, interactive method.

Good Luck

Frank.
Fais la ...
Trond Haugen
Honored Contributor

Re: avoid starting sam using swcopy tocreate a depot from many patches

I don't know what swcopy command you use in your script but this one works fine for me:
# swcopy -d -xlayout_version=1.0 -s `pwd`/PATCHES.depot \* @ /depot

That is I have never seen any SAM nor interactive swcopy when using it.
If this don't help lease mention what you commandline is.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
HPINVENT
Occasional Contributor

Re: avoid starting sam using swcopy tocreate a depot from many patches

Hi Trond..

Is there a space between the x and the layout_version

And the /patches at the end, is that a directory where the current unsharred patches are located ?

Thx


Trond Haugen
Honored Contributor

Re: avoid starting sam using swcopy tocreate a depot from many patches

Hi Saty,

yes to both. The command should/could read:
swcopy -d -x layout_version=1.0 -s `pwd`/PATCHES.depot \* @ /var/adm/sw/mydepot

Regards,
Trond


Regards,
Trond Haugen
LinkedIn
Mark Greene_1
Honored Contributor

Re: avoid starting sam using swcopy tocreate a depot from many patches

have your tried unsetting the DISPLAY environment variable before doing the swcopy?

mark
the future will be a lot like now, only later