Prosody installation guide: diagnostic programs: int2text

This program converts a file from a sequence of 32-bit numbers (such as is produced by cpumon) into a text listing of the numbers in decimal with one number per line. This format is human readable and can also be used by non-Prosody programs, for example, gnuplot (see www.gnuplot.info).

Go to directory $(TiNG)/diag/int2text.

This is a standalone program that requires no Prosody facilities, so you can run it on a system which does not have Prosody installed.

Run int2text with the appropriate options (the program is gen-LINUX_V6/int2text or gen-WINNT_V6/int2text depending on which operating system you are using).

Command line options are:

-i infile Specifies the file to read. If this option is omitted, reads standard input.
-o outfile Specifies the output file. If this option is omitted, writes to standard output.

For example,

	gen-LINUX_V6/int2text -i cpudat.32 -o cpudat.text

converts the data in file cpudat.32 into text and saves it in cpudat.text.

The source code for this program is provided (int2text.c).


This is one of the Prosody diagnostic programs .