Operating System - HP-UX
1838356 Members
3253 Online
110125 Solutions
New Discussion

Re: Using patch to patch a cgi script.

 
SOLVED
Go to solution
someone_4
Honored Contributor

Using patch to patch a cgi script.

Hi

I am trying to patch a cgi-script using the patch command.

patch -p0 < /opt/hpws/apache/cgi-bin/larrd-grapher.cgi.patch
Hmm... I can't seem to find a patch in there anywhere.

patch < /opt/hpws/apache/cgi-bin/larrd-grapher.cgi.patch
Hmm... I can't seem to find a patch in there anywhere.

The instructions i have say

Patch your larrd-grapher.cgi file with the included
diff (patch < larrd-grapher.cgi.patch). You'll find the
cgi in your webserver's cgi-bin directory.


But I cant get it to work.

Thanks

RIchard
4 REPLIES 4
Geoff Wild
Honored Contributor

Re: Using patch to patch a cgi script.

Wrong syntax...should be this...I think:

patch -p0 /opt/hpws/apache/cgi-bin/larrd-grapher.cgi /opt/hpws/apache/cgi-bin/larrd-grapher.cgi.patch

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
someone_4
Honored Contributor

Re: Using patch to patch a cgi script.

Hi Geoff

same error

Hmm... I can't seem to find a patch in there anywhere.

At least the command is polite about it :)

Richard
Geoff Wild
Honored Contributor
Solution

Re: Using patch to patch a cgi script.

Hmnn....sorry - no pun intended :) you may have to use the GNU version of patch to get this to work....

Which version of LAARD are you using, I think 1.5 is latest:

http://www.deadcat.net/search.php?action=browse&sectionid=3

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
someone_4
Honored Contributor

Re: Using patch to patch a cgi script.

I used GNU version of patch and it worked great.

/opt/hpws/apache/cgi-bin# /usr/local/bin/patch < larrd-grapher.cgi>
patching file larrd-grapher.cgi

And I am using larrd-0.43c i will look for the latest version.

Thanks,


-Richard