Patchfile: not found (or Command not found) [SOLVED]
#1
Patchfile: not found (or Command not found) [SOLVED]
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

———————————————————————————————
<r>Nevermind if SGI is dead ... In SGI I trust (^_^!)<br/>
<E>Octane</E> 1x400Mhz / 2Go Ram / V8 / Irix 6.5.26</r>
(This post was last modified: 02-18-2019, 09:16 PM by def13.)
def13
O2

Posts: 41
Threads: 7
Joined: Jun 2018
Find Reply
02-12-2019, 06:21 PM
#2
RE: Patchfile: not found (or Command not found)
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?
(This post was last modified: 02-12-2019, 07:17 PM by dexter1.)
dexter1
Global Moderator
******

Posts: 192
Threads: 10
Joined: May 2018
Find Reply
02-12-2019, 07:16 PM
#3
RE: Patchfile: not found (or Command not found)
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: 13
necron2600
O2

Posts: 31
Threads: 4
Joined: May 2018
Find Reply
02-12-2019, 10:06 PM
#4
RE: Patchfile: not found (or Command not found)
@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.

———————————————————————————————
<r>Nevermind if SGI is dead ... In SGI I trust (^_^!)<br/>
<E>Octane</E> 1x400Mhz / 2Go Ram / V8 / Irix 6.5.26</r>
def13
O2

Posts: 41
Threads: 7
Joined: Jun 2018
Find Reply
02-13-2019, 11:10 AM
#5
RE: Patchfile: not found (or Command not found)
(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'.

SGI:  Indigo, Indigo2, Octane, Origin 300
Sun:  SPARCstation 20 (x2), Ultra 2, Blade 2500, T5240
HP:  9000/380, 425e, C8000
Digital: DECstation 5000/125
jpstewart
Octane

Posts: 61
Threads: 0
Joined: May 2018
Find Reply
02-13-2019, 09:13 PM
#6
RE: Patchfile: not found (or Command not found)
@necron2600 : Your Patchfile works perfectly , THX !

———————————————————————————————
<r>Nevermind if SGI is dead ... In SGI I trust (^_^!)<br/>
<E>Octane</E> 1x400Mhz / 2Go Ram / V8 / Irix 6.5.26</r>
def13
O2

Posts: 41
Threads: 7
Joined: Jun 2018
Find Reply
02-18-2019, 09:16 PM


Forum Jump:


Users browsing this thread: 1 Guest(s)