I made changes on client pca.cgi
(basename($0) =~ /pca-proxy.*cgi/) && ($o{proxy}=1);
basename($0) =~ "debug") && ($o{debug}=1);
and ran
# pca --xrefurl=http://192.168.2.1/cgi-bin/pca-proxy-sol10.cgi
--patchurl=http://192.168.2.1/cgi-bin/pca-proxy-sol10.cgi
-l missingrs -V
Option list: 1
Option patchdir: /usr/sbin/.
Option patchurl: http://192.168.2.1/cgi-bin/pca-proxy-sol10.cgi
Option xrefurl: http://192.168.2.1/cgi-bin/pca-proxy-sol10.cgi
Option debug: 1
Command: /usr/sbin/pca
ARGV: missingrs
Version: 20120326-01
CWD: /usr/sbin
Found /usr/sfw/bin/wget (1.12, 11200, https)
Using /usr/sfw/bin/wget
Found /usr/bin/uname
Prerequisites for threads not met, setting threads to 0
Never update
Expanded patch list: missingrs
Downloading xref file to /var/tmp/patchdiag.xref
Trying http://192.168.2.1/cgi-bin/pca-proxy-sol10.cgi
src: url, srcurl: http://192.168.2.1/cgi-bin/pca-proxy-sol10.cgi?
/usr/sfw/bin/wget --progress=dot:binary -O /var/tmp/patchdiag.xref "http://
192.168.2.1/cgi-bin/pca-proxy-sol10.cgi?patchdiag.xref"
--2012-08-15 10:57:25--
http://192.168.2.1/cgi-bin/pca-proxy-sol10.cgi?patchdiag.xref
Connecting to 192.168.2.1:80... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
2012-08-15 10:57:25 ERROR 500: Internal Server Error.
Failed (Error 500: Internal Server Error)
Failed (patchdiag.xref not found)
osname from uname: SunOS
Reading from /usr/bin/showrev -p 2>/dev/null
ERROR: Can't open xref file /var/tmp/patchdiag.xref (No such file or
directory)
Cleanup
[Wed Aug 15 10:40:58 2012] [error] [client 192.168.2.1] ERROR:
[Wed Aug 15 10:40:58 2012] [error] [client 192.168.2.1 ] Unknown operand:
patchdiag.xref
[Wed Aug 15 10:40:58 2012] [error] [client 192.168.2.1 ]
[Wed Aug 15 10:40:58 2012] [error] [client 192.168.2.1 ] Premature end of
script headers: pca-proxy-sol10.cgi
thanks
aj
On Mon, Aug 13, 2012 at 4:09 AM, Martin Paul <[email protected]>wrote:
> Am 10.08.2012 22:26, schrieb Aasim Ajaz:
>
> and updated pca-proxy.cgi to change pca-proxy.conf to
>> pca-proxy-sol10.conf
>> and it works ; however when I change the pca-proxy.cgi to
>> pca-proxy-sol10.cgi the following shows up
>>
>
> PCA has an internal check, which makes it work as a pca-proxy only when
> its filename is "pca-proxy.cgi". You will have to change that in the code.
> The original code is:
>
> (basename($0) eq "pca-proxy.cgi") && ($o{proxy}=1);
>
> Change it to e.g.:
>
> (basename($0) =~ /pca-proxy.*cgi/) && ($o{proxy}=1);
>
> hth,
> Martin.
>
>