patch

Dear All ,

I have Sun Solaries 7 sparc server ... am runing perl , CGI , MD5 ... etc for new web mail am setting up .

now i have to install the patch ( xyz.pl.patch ) against a perl file for ex. xxx.pl

what exact command i have to use ,,, also i do not want to make damage for my system and my new webmail !!

thanks

Hi,

Please explain; are you trie-ing to install a Solaris patch or are you trie-ing to install a Perl module ?

Installing the perl module is described in the attached README-file, this file also warns you for depencies, etc. Installing a Solaris patch cannot harm the use of Perl. It's easy done by f.e. the "patchadd" command.

Regs David

Hi ,,

well it is not solaries patch .

it is patch related to the web mail i installed ,,, but i think it is related to perl since the patch file name is like this :

xyz.pl.patch

i do not think i can use patchadd for it .
i need the exact format of command to install this patch against a file !!

Hi,

Can you please let me know the exact filename.
the output of :
file <file>
head -2 <file>

Many thanks in advance.
B.T.W. : it looks like you should just run the script doing :

chmod 555 <file>

/path/to/file [Enter]

@yourservice
David

Mr. David ,

I would like to thank you for your qiuck answers :wink:

here is :

# file neomail.pl.patch
neomail.pl.patch: c program text

&

# head -2 neomail.pl.patch
--- neomail.pl Mon Aug 26 15:46:56 2002
+++ /usr/local/neomail/cgi-bin/neomail.pl Mon Aug 26 16:01:31 2002

--------------------------------------------------------------------------------

shall i apply the command you gave to me ???

the chmod 555 one ?

Hi,

Huuh, not so quick anymore, was bussy.

The file command says it's a C-program, but when performing the head it shows a tar-file.

2 differences :

1) it's a c-program, so "cc <file>" or "gcc <file>" should create you an executable
2) it's a tar file containing help-files make-files etc. "tar tvf <file>" should show you the contents then. Renaming the file to .tar first is no luxury.

Going home now, tomorow I can try to help you further, sorry.

Regs David

Hi ,,,

Well i tried both methods and they did not work !!

  1. the "cc" or "gcc" one .
  2. i do not think it is tar file !

there is a command which is :

patch -p0 neomail.pl.patch

but am not sure of it !

Thanks