IRIX Network Forums
Patchfile: not found (or Command not found) [SOLVED] - Printable Version

+- IRIX Network Forums (//forums.irixnet.org)
+-- Forum: SGI/MIPS (//forums.irixnet.org/forum-3.html)
+--- Forum: IRIX/Software (//forums.irixnet.org/forum-7.html)
+--- Thread: Patchfile: not found (or Command not found) [SOLVED] (/thread-951.html)



Patchfile: not found (or Command not found) [SOLVED] - def13 - 02-12-2019

Hi,

I've got a script to patch a file, looks like that (line 6 and 7 are not the real datas) :

Code:
#!/sbin/sh
#
# comments
#

cd /usr/path to the I've to patch
patchfile myFile 0x00000000 0x00000000

#
# comments
#
But when I run this script with ./myScript in a console (or in winterm), it returns :
./myScript[7]: patchfile: not found

I try to do it manually :
cd usr/path to my file
patchfile myFile 0x00…

But the result is :
patchfile - Command not found

:huh:


RE: Patchfile: not found (or Command not found) - dexter1 - 02-12-2019

The script is trying to execute a program called 'patchfile'. So do you have it?

I don't recall a program 'patchfile' in the IRIX environment. Maybe it is some other script it needs to execute.

Just what is it exactly what you're trying to do?


RE: Patchfile: not found (or Command not found) - necron2600 - 02-12-2019

He is trying to crack software.
You can always hexedit the file manually.
This patchfile binary is hard to find on its own but usually comes bundled with  other stuff.
See attached...
.tar patchfile.tar Size: 20 KB  Downloads: 286



RE: Patchfile: not found (or Command not found) - def13 - 02-13-2019

@dexter 1 : Thanks.
After a quick search in my nekoware library, I found neko_patch_2.x
I read the "man" and it looks to be a great app but I'm not sure it could do what I want.

@necron2600 : Thanks too.
I've try with Hexedit but F1 key doesn't work in my wintern (or my console) ; perhaps due to a bad map of my black US QWERTY SGI keyboard (?).
I'll try patchfile to night.


RE: Patchfile: not found (or Command not found) - jpstewart - 02-13-2019

(02-13-2019, 11:10 AM)def13 Wrote:  After a quick search in my nekoware library, I found neko_patch_2.x
I read the "man" and it looks to be a great app but I'm not sure it could do what I want.

No, neko_patch is completely different/unrelated software.  It contains the GNU version of the 'patch' utility, while your script is looking for something else that's called 'patchfile'.


RE: Patchfile: not found (or Command not found) - def13 - 02-18-2019

@necron2600 : Your Patchfile works perfectly , THX !