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)
I have a task that says: make a file (called binaryfile ) that contains
4 bytes of NULL data
6 bytes of random data
8 bytes of 1
10 bytes of 5
and 12 bytes of 9.
For the first 2, I can used :
dd if=/dev/null of=binaryfile bs=8 count =4 and
dd if=/dev/urandom of=binaryfile bs=8... (3 Replies)
Hi,
I wrote a small script whose function is to execute the postemsg provided if the threshold breaches.
I want to log this postemsg messages to a log file. But I am not able to do. Can someone throw some light on how to log the output of this. I am pasting a snippet of that code.
... (2 Replies)
I am using grep to match a pattern, but the output is strange.
$ grep -r -o "pattern" *
Gives me:
Binary file foo1 matches
Binary file foo2 matches
Binary file foo3 matches
To find the lines before/after, I then have to use the following on each file:
$ strings foo1 | grep -A1 -B1... (0 Replies)
Hello,
Can I copy a binary file while the file is being written to by another process?
Another process (program) “P1” creates and opens (for writing) binary file “ABC” on local disk. Process P1 continuously write into ABC file every couple of seconds, adding 512-byte blocks of data. ABC file... (1 Reply)
I am struck up with a problem and that is with output redirection.
I used all the ways for the redirection of the output of c binary to a file, still it is failing.
Here are the different ways which I have used:
./a.out | tee -a /root/tmp.txt 2>&1
./a.out | tee -a /root/tmp.txt 1>&1
./a.out |... (2 Replies)
Hello guys,
We had to move from a DC to another, and we are now facing an "issue" with some text files.
Looks like that some of our log files are set as binary:
file TuxConnectorURA.20121012
TuxConnectorURA.20121012: data or International Language text
less TuxConnectorURA.20121012... (2 Replies)
Hi to everyone :), i have a challenge right now in python that for now needs a bit of help in one part of the c0de.
The task is create a new file with the name of the file defined by the ASCII content between the 3 byte and the 16 byte that is parsed from the binary file, the file is over 20 Mb i... (0 Replies)
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
LEARN ABOUT REDHAT
xmcvtxmstringtobytestream
XmCvtXmStringToByteStream(library call) XmCvtXmStringToByteStream(library call)
NAME
XmCvtXmStringToByteStream -- A compound string function that converts a compound string to a Byte Stream format
SYNOPSIS
#include <Xm/Xm.h>
unsigned int XmCvtXmStringToByteStream(
XmString string,
unsigned char **prop_return);
DESCRIPTION
XmCvtXmStringToByteStream converts a compound string to a string of bytes representing the compound string in Byte Stream format. This
routine is typically used by the source of a data transfer operation to produce a Byte Stream representation for transferring a compound
string to a destination.
If prop_return is not NULL, this function creates a string of characters in Byte Stream format and returns it in prop_return. The function
also returns the number of bytes in prop_return. If prop_return is NULL, the function does not return the Byte Stream format string, but
it does calculate and return the number of bytes that would appear in the Byte Stream format string.
string Specifies a compound string to be converted to Byte Stream format
prop_return
Specifies a pointer to a string in Byte Stream format that is created and returned by this function. If prop_return is NULL, no
Byte Stream format string is returned. When a Byte Stream format string is returned, the function allocates space to hold it.
The application is responsible for managing this allocated space. The application can recover the allocated space by calling
XtFree.
RETURN
Returns the number of bytes in the Byte Stream representation (whether or not the Byte Stream representation is returned).
RELATED XmString(3) and XmCvtByteStreamToXmString(3).
XmCvtXmStringToByteStream(library call)