- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Edit binary file
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2002 08:31 PM
тАО12-18-2002 08:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2002 07:59 PM
тАО12-18-2002 07:59 PM
Re: Edit binary file
In case you want you should change source code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2002 08:08 PM
тАО12-18-2002 08:08 PM
Re: Edit binary file
But I'm not sure which command could modify
the binary file contents. As I know, it could
be modified by UltraEdit tool, how about in
HP UNIX?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2002 08:33 PM
тАО12-18-2002 08:33 PM
Re: Edit binary file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2002 08:44 PM
тАО12-18-2002 08:44 PM
Re: Edit binary file
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2002 08:55 PM
тАО12-18-2002 08:55 PM
Re: Edit binary file
you can use xd to make dump of the binary file.
open it using any editor and then re-create a new binary file after modifications.
Revert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2002 09:19 PM
тАО12-18-2002 09:19 PM
Re: Edit binary file
xd creates Hexadecimal dump of the file which yu can't understand (edit)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2002 09:24 PM
тАО12-18-2002 09:24 PM
Re: Edit binary file
xd creates Hexadecimal dump of the file which yu can't understand (edit) (you can't edit a binary file)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2002 11:12 PM
тАО12-18-2002 11:12 PM
Re: Edit binary file
You can do what you want but,
ONLY EDIT A BACKUP FILE !!!!
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2002 11:12 PM
тАО12-18-2002 11:12 PM
Re: Edit binary file
of course you can edit binary files with a hex-editor, look at
http://hpux.tn.tudelft.nl/hppd/hpux/Development/Tools/hexedit-0.9.7/
You can change textblocks, outputs, error messages and so on. The main thing is that the internal adresses of the binary may not change.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2002 11:40 PM
тАО12-18-2002 11:40 PM
Re: Edit binary file
Elvis can edit binary files
http://elvis.the-little-red-haired-girl.org/gettingelvis/index.html
Regards
Rainer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2002 01:24 AM
тАО12-19-2002 01:24 AM
Re: Edit binary file
Eugeny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2002 04:34 AM
тАО12-19-2002 04:34 AM
Re: Edit binary file
If you know the format, you will need to use a programming language that supports the data formats contained in the file.
Unless you have a good idea as to the format of the file, I would work with the vendor to determine the file format and language they use to read and write the files. Heck they may even give you an includes with some nice data structures!
hth,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2002 04:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2002 05:12 AM
тАО12-19-2002 05:12 AM
Re: Edit binary file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2002 05:58 AM
тАО12-19-2002 05:58 AM
Re: Edit binary file
If it's data, you can use a hex editor, but you can still wreck data if you dont know how it's formatted. So while it sounds easy, it's not.
If it's an executable or library file, I would not bother. You will most likely corrupt the file by making any changes to it. Simple text substitution even means that character count in strings MUST match. Adding or subtracting characters will corrupt the file.
Rule of thumb. Work on a backup copy so you dont hoze the original.
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2002 01:05 PM
тАО12-19-2002 01:05 PM
Re: Edit binary file
emacs has a special mode called
hexl-mode.
About the only things you can safely
modify are strings, and perhaps numbers
if you are careful and know a bit about
the internal representation of them.
If it's a C-language program and you trust
that it's using libc strings (and not
roll-your-own strings) you can modify any
string in the file as long as the replacement
string is shorter than or the same length as
the original. The null byte at the end of libc
strings makes this work, even if the
replacement is shorter than the original. If
the replacement is longer than the original
you are out of luck.
Just out of curiosity, why would you want
to do such a thing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2002 09:54 PM
тАО12-19-2002 09:54 PM
Re: Edit binary file
rgds,
Ravi B Hiremath
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2002 10:01 PM
тАО12-19-2002 10:01 PM
Re: Edit binary file
rgds,
Ravi B Hiremath
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2002 06:23 AM
тАО12-20-2002 06:23 AM
Re: Edit binary file
http://hpux.ee.ualberta.ca/hppd/hpux/Editors/beav-14.0.6/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2003 09:52 AM
тАО01-06-2003 09:52 AM
Re: Edit binary file
binary files. The interface isn't exactly
intuitive, but it can be done.
As previously noted, some text editors can also edit binary files. It would help to know more about the types of files you need to edit and the types of editing you need to do to them.