Operating System - HP-UX
1826614 Members
2768 Online
109695 Solutions
New Discussion

postremove is not working.

 
Hanry Zhou
Super Advisor

postremove is not working.

I have a postremove script and it is defined in .psf file, when I manually run it, it is fine, but when I run swremove, the script doesn't work right.
The postistall is working okay, as I expected.

Here is the script of swremove:

ln -s xyz a
ln -s xyz b
mv xyz abc

It complaints the xyz is not there.

Here is the outlook of my .psf
product
tag
...
postinstall full path name
postremove full pth anme

fileset
....
end
end


Is there anything wrong?
none
2 REPLIES 2
MarkSyder
Honored Contributor

Re: postremove is not working.

It works when you run it manually - are you in the directory containing the script?

It doesn't work when run automatically - is the script in a directory contained in your path? Alternatively, are you typing the full path name of the script?

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Sanjiv Sharma_1
Honored Contributor

Re: postremove is not working.

Hi Hanry,

Check the environment variables especially the PATH.

You can run the scripts and all the commands inside the script with the full path.

Everything is possible