Sponsored Content
Full Discussion: Parsing Binary
Top Forums Shell Programming and Scripting Parsing Binary Post 302170689 by Raom on Tuesday 26th of February 2008 12:09:30 PM
Old 02-26-2008
length = *((long *)Len&0xffffffffffffffff) ,should give you correct length (on n/w endian machine)
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Where is M4 binary?

Hello, I am configurating Sendmail on Mac OS 10.x terminal. I tried to execute m4 to generate a new sendmail.cf. It complains "Command not found". Anybody knows where the m4 binary is? Is it something coming along with Unix or Sendmail? Appreciate any help. Thanks in advance. pw (2 Replies)
Discussion started by: hypamw
2 Replies

2. UNIX for Dummies Questions & Answers

binary file

please let me know how can i mail the binary files is it can be done thru pine? is there any other way to do it? wat are the changes in system i have to make and one more thing i am sending data to a message queue and then retriving the data from the queue but when i do the ipcs... (1 Reply)
Discussion started by: ramneek
1 Replies

3. UNIX for Dummies Questions & Answers

binary file

when using telnet localhost 25 I can cat ASCII files into the email body and an attachment, but how do i get a non-ASCII file into it, like a picture or a word document (.doc not rtf). uuencode, just stalls. Any ideas? :confused: (1 Reply)
Discussion started by: markms
1 Replies

4. Solaris

compiled binary file gives "cannot execute binary file"

Hi, I have two Solaris machines. 1. SunOS X 5.8 Generic_108528-29 sun4u sparc SUNW,Sun-Blade-1500 2. SunOS Y 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-60 I am trying to buiild a project on both these machines. The Binary output file compiled on machine 2 runs on both the machines. Where... (0 Replies)
Discussion started by: scgupta
0 Replies

5. Shell Programming and Scripting

Perl parsing compared to Ksh parsing

#! /usr/local/bin/perl -w $ip = "$ARGV"; $rw = "$ARGV"; $snmpg = "/usr/local/bin/snmpbulkget -v2c -Cn1 -Cn2 -Os -c $rw"; $snmpw = "/usr/local/bin/snmpwalk -Os -c $rw"; $syst=`$snmpg $ip system sysName sysObjectID`; sysDescr.0 = STRING: Cisco Internetwork Operating System Software... (1 Reply)
Discussion started by: popeye
1 Replies

6. Shell Programming and Scripting

Parsing of file for Report Generation (String parsing and splitting)

Hey guys, I have this file generated by me... i want to create some HTML output from it. The problem is that i am really confused about how do I go about reading the file. The file is in the following format: TID1 Name1 ATime=xx AResult=yyy AExpected=yyy BTime=xx BResult=yyy... (8 Replies)
Discussion started by: umar.shaikh
8 Replies

7. HP-UX

machinfo binary

Hello, 2 questions: 1. is the binary "machinfo" installed by default on HP-UX servers? 2. which is the packet that installs "machinfo" ? Thank you (1 Reply)
Discussion started by: asanchez
1 Replies

8. Shell Programming and Scripting

inverting a binary

Hi , I have a binary in a variable and i want to invert it and store in a new variable. i mean, replace 0 with 1 and vice versa. I tried reading character by character with the below script but it didnt provide me the proper result. #!/bin/bash count=1 var1="00100011" while ] do ... (4 Replies)
Discussion started by: srinivasayedla
4 Replies

9. Solaris

binary conversion

Why would a binary which was compiled on a Solaris-10 not be runnable in a SunOS 5.10? (they are supposed to be precisely equivalent). When I run the file command on it, it says: ELF 32-bit LSB executable 80386 Version 1, dynamically linked, not stripped, no debugging information available... (10 Replies)
Discussion started by: steve701
10 Replies

10. Shell Programming and Scripting

Convert binary file to csv and then back to the binary format

Hello *nix specialists, Im working for a non profit organisation in Germany to transport DSL over WLAN to people in areas without no DSL. We are using Linksys WRT 54 router with DD-WRT firmware There are at the moment over 180 router running but we have to change some settings next time. So my... (7 Replies)
Discussion started by: digidax
7 Replies
shfragbf(8)						      System Manager's Manual						       shfragbf(8)

NAME
shfragbf - displays frag file information SYNOPSIS
/sbin/advfs/shfragbf file_system /.tags/1 OPERANDS
Specifies the fileset mount point of the file system to display. DESCRIPTION
Use this command to display how much space is used on the frag file. Type The frag type is 0K (not in use), 1K for 1K frags, etc. Grps Specifies the number of groups of the frag type. bad Specifies the number of bad group headers of this type. Frags Specifies the number of fragments of this type. free Specifies the number of free frags of this type. in-use Specifies the number of fragments in use. Bytes Specifies the total bytes in this frag type. free Specifies the number of bytes free in this type. in-use Specifies the number of bytes in use in this type. RESTRICTIONS
You must have root user privileges to access this command. EXAMPLES
Following is an example of the shfragbf output: # shfragbf /usr/.tags/1 Type Grps bad Frags free in-use Bytes free in-use ---- ------ ------ ------ ------ ------ ------ ------ ------ 0k 0 0 0 0 0 0k 0k 0k 1k 10 0 1270 130 1140 1270k 130k 1140k 2k 11 0 693 54 639 1386k 108k 1278k 3k 20 0 840 39 801 2520k 117k 2403k 4k 19 0 589 22 567 2356k 88k 2268k 5k 16 0 400 5 395 2000k 25k 1975k 6k 17 0 357 6 351 2142k 36k 2106k 7k 21 0 378 9 369 2646k 63k 2583k Percent Free Frags per Group Histogram Type Grps 9% 19% 29% 39% 49% 59% 69% 79% 89% 99% 100% ---- ------ --- --- --- --- --- --- --- --- --- --- --- 0k 0 0 0 0 0 0 0 0 0 0 0 0 1k 10 8 0 1 0 0 0 0 0 0 0 0 2k 11 10 0 0 0 0 0 0 0 1 0 0 3k 20 19 0 0 0 0 0 0 0 1 0 0 4k 19 18 0 0 0 0 0 1 0 0 0 0 5k 16 15 0 1 0 0 0 0 0 0 0 0 6k 17 16 0 1 0 0 0 0 0 0 0 0 7k 21 20 0 0 0 1 0 0 0 0 0 0 fragbf occupies 14592k bytes 13753k in-use, 567k free, 114k overhead, 158k wasted FILES
Specifies the command path. SEE ALSO
advfs(4) shfragbf(8)
All times are GMT -4. The time now is 02:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy