On Sun, 3 May 1998, Tom wrote:
> 
> No but it will show which netscape (if installed) should be called
> on if the script is being found before the real binary, and the binary
> isn't where the script thinks it should be. 
> 

I have netscape-communicator installed in my system, rpm -q
netscape-communicator generates this: netscape-communicator-4.04-3.

I already modified the line which invokes netscape to:

action none 1 exec netscape-communicator

This invokes the script in my /usr/bin/netscape-communicator which 
contains the netscape script.
But the problem is it get stuck with in the ff. lines where it checks
if netscape-communicator is installed using rpm -q:

if ! rpm -q $which >/dev/null 2>&1; then
        echo "You don't have $which installed." >&2
        exit 1
fi


This generates the error message "You don't have netscape-communicator
installed."

I have already found a solution for my problem.

1. I commented out the above lines in the netscape script.

2. I found out that netscape rpm -q returns a value in $I which has
   no leading /usr.  My netscape is installed in /usr/lib/netscape
   directory so I added a line: 
                I=/usr/$I  
   after the line:
        I="`rpm -q $which --qf '%{INSTALLPREFIX}\n'`"

I'm just wondering how these extra parameters (--qf '%{INSTALLPREFIX})
for rpm works.  Reading the rpm man page says it's part of --queryformat
option which is modified standard printf formatting.  Can someonme 
enlighten me on this?




-
To unsubscribe from this list send mail to: [EMAIL PROTECTED]
with the message contents: unsubscribe e-develop

Reply via email to