Main > Free Download Search >

Free stdout software for linux

stdout

Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 291
MassResolve 0.1

MassResolve 0.1


MassResolve application performs reverse DNS lookups for network blocks or an input file. more>>
MassResolve application performs reverse DNS lookups for network blocks or an input file. The requests can be performed mulit-threaded.

Usage:

./res < subnet or filename to resolve > < forks >

Code:

/*
MassResolve (C) 2000 John Anderson (john@ev6.net)
This program performs reverse dns lookups for network blocks
or an input file and supports multi threading.

*/

#include < stdio.h>
#include < fcntl.h>
#include < netdb.h>
#include < signal.h>
#include < sys/time.h>
#include < unistd.h>
#include < netinet/in.h>
#include < netinet/ip.h>
#include < netinet/ip_icmp.h>
#include < errno.h>
#include < string.h>
#include < getopt.h>
#include < setjmp.h>

char *
rlookup (u_long ip)
{
static char hostname[256];
struct hostent *host;
struct sockaddr_in addr;

addr.sin_addr.s_addr = ip;

host =
gethostbyaddr ((char *) &addr.sin_addr, sizeof (addr.sin_addr), AF_INET);

if (host == NULL)
{
printf ("%s does not resolve.n", inet_ntoa (ip));
fflush (stdout);
}
else
{
printf ("%s resolves to %sn", inet_ntoa (ip), host->h_name);
fflush (stdout);
}
}

int maxforq = 0;

int
main (int argc, char **argv)
{
int pid, k, j, frk, i, mforks;
char *pt;
char mehost[200], sv[3];
FILE *inp;

mforks = 64; /* default */
if (argv[1] == NULL)
{
printf ("Usage: %s n", argv[0]);
exit (0);
}
if (!argv[2] == NULL)
{
mforks = atoi (argv[2]);
}
/* printf ("Resolving all hosts in %s with %d threadsn", argv[1], mforks); */
if((inp=fopen(argv[1],"r"))!=NULL)
{
while(fgets(mehost,sizeof(mehost),inp))
{
sscanf(mehost,"%sn",mehost);
frk = fork ();
if (frk == 0)
{
fflush (stdout);
rlookup (inet_addr (mehost));
exit (0);
}
else
{ /* frk = 0 */
maxforq++;
if (maxforq > mforks)
{
wait (NULL); // waiting until the child died
maxforq--;
}

}

}
fclose(inp);
exit(0);
}

pt = strchr (argv[1], .);
if (pt == NULL)
{ /* ANET */
for (k = 0; k<<less
Download (0.004MB)
Added: 2007-08-22 License: GPL (GNU General Public License) Price:
796 downloads
Safe::World 0.14

Safe::World 0.14


Safe::World can create multiple virtual instances of a Perl interpreter that can be assembled together. more>>
Safe::World can create multiple virtual instances of a Perl interpreter that can be assembled together.

SYNOPSIS

See USE section for complexer example and the test.pl script.

use Safe::World ;

my $world = Safe::World->new(
stdout => $stdout , ## - redirect STDOUT to this scalar.
stderr => $stderr , ## - redirect STDERR to this scalar.
flush => 1 , ## - output is flushed, soo dont need to wait exit to
## have all the data inside $stdout.
) ;

## Evaluate some code:
$world->eval(q`
use Data::Dumper ;
print Dumper( {a => 1 , b => 2} ) ;
`);

$world->close ; ## ensure that everything is finished and flushed.

die($stderr) if $stderr ;

print $stdout ;

$world = undef ; ## Destroy the world. Here the compartment is cleanned.

Note that in this example, inside the World is loaded Data::Dumper, but Data::Dumper was loaded only inside of it, keeping the outside normal.

<<less
Download (0.034MB)
Added: 2007-08-15 License: Perl Artistic License Price:
802 downloads
MIME::Head 5.420

MIME::Head 5.420


MIME::Head is a MIME message header (a subclass of Mail::Header). more>>
MIME::Head is a MIME message header (a subclass of Mail::Header).

SYNOPSIS

Before reading further, you should see MIME::Tools to make sure that you understand where this module fits into the grand scheme of things. Go on, do it now. Ill wait.

Ready? Ok...

Construction

### Create a new, empty header, and populate it manually:
$head = MIME::Head->new;
$head->replace(content-type, text/plain; charset=US-ASCII);
$head->replace(content-length, $len);

### Parse a new header from a filehandle:
$head = MIME::Head->read(*STDIN);

### Parse a new header from a file, or a readable pipe:
$testhead = MIME::Head->from_file("/tmp/test.hdr");
$a_b_head = MIME::Head->from_file("cat a.hdr b.hdr |");

Output

### Output to filehandle:
$head->print(*STDOUT);

### Output as string:
print STDOUT $head->as_string;
print STDOUT $head->stringify;

Getting field contents

### Is this a reply?
$is_reply = 1 if ($head->get(Subject) =~ /^Re: /);

### Get receipt information:
print "Last received from: ", $head->get(Received, 0), "n";
@all_received = $head->get(Received);

### Print the subject, or the empty string if none:
print "Subject: ", $head->get(Subject,0), "n";

### Too many hops? Count em and see!
if ($head->count(Received) > 5) { ...

### Test whether a given field exists
warn "missing subject!" if (! $head->count(subject));
Setting field contents
### Declare this to be an HTML header:
$head->replace(Content-type, text/html);
Manipulating field contents
### Get rid of internal newlines in fields:
$head->unfold;

### Decode any Q- or B-encoded-text in fields (DEPRECATED):
$head->decode;

Getting high-level MIME information

### Get/set a given MIME attribute:
unless ($charset = $head->mime_attr(content-type.charset)) {
$head->mime_attr("content-type.charset" => "US-ASCII");
}

### The content type (e.g., "text/html"):
$mime_type = $head->mime_type;

### The content transfer encoding (e.g., "quoted-printable"):
$mime_encoding = $head->mime_encoding;

### The recommended name when extracted:
$file_name = $head->recommended_filename;

### The boundary text, for multipart messages:
$boundary = $head->multipart_boundary;

<<less
Download (0.38MB)
Added: 2007-08-13 License: Perl Artistic License Price:
803 downloads
Test::Trap 0.0.23

Test::Trap 0.0.23


Test::Trap is a Perl module with trap exit codes, exceptions, output, etc. more>>
Test::Trap is a Perl module with trap exit codes, exceptions, output, etc.

SYNOPSIS

use Test::More;
use Test::Trap qw( trap $trap );

my @r = trap { some_code(@some_parameters) };
is ( $trap->exit, 1, Expecting &some_code to exit with 1 );
is ( $trap->stdout, , Expecting no STDOUT );
like ( $trap->stderr, qr/^Bad parameters; exitingb/, Expecting warnings. );

Primarily (but not exclusively) for use in test scripts: A block eval on steroids, configurable and extensible, but by default trapping (Perl) STDOUT, STDERR, warnings, exceptions, would-be exit codes, and return values from boxed blocks of test code.

The values collected by the latest trap can then be queried or tested through a a special result object.

EXPORT

A function and a scalar may be exported by any name. The function (by default named trap) is an analogue to block eval(), and the scalar (by default named $trap) is the corresponding analogue to $@.

Optionally, you may specify the default layers for the exported trap. Layers may be specified by name, with a colon sigil. Multiple layers may be given in a list, or just stringed together like :flow:stderr:warn.

(For the advanced user, you may also specify anonymous layer implementations -- i.e. an appropriate subroutine.)

See below for a list of the built-in layers, all of which are enabled by default. Note, finally, that the ordering of the layers matter: The :raw layer is always on the bottom (anything underneath it is ignored), and any other "flow control" layers used should be right down there with it.

FUNCTION

trap BLOCK

This function may be exported by any name, but defaults to trap.
Traps exceptions like block eval, but (by default) also traps exits and exit codes, returns and return values, context, and (Perl) STDOUT, STDERR, and warnings, All information trapped can be queried by way of the status object, which is by default exported as $trap, but can be exported by any name.

<<less
Download (0.028MB)
Added: 2007-08-06 License: Perl Artistic License Price:
810 downloads
qscore 0.0.6

qscore 0.0.6


qscore project can parse Quake3:Arena (and compatible) server.log into high scores and statistics. more>>
qscore project can parse Quake3:Arena (and compatible) server.log into high scores and statistics.
Options:
--version output version information and exit
--help display this help and exit
Strip & Sort:
--sort=HOW sort player results
HOW=0 do not sort (default)
HOW=1 sort by frags
HOW=2 sort by rounds
HOW=3 sort by average
-r sort reverse
Output:
-o=FILE output into FILE (default: stdout)
--txt output as plain text (default)
--ansi output as text with ANSI colors
--html output as html
--csv output as comma-separated values CSV
Enhancements:
- The whole code was optimized a bit.
- Total game time statistics were added.
- A remote console for Quake3:Arena (and compatible) server administration was added.
<<less
Download (0.022MB)
Added: 2007-08-01 License: GPL (GNU General Public License) Price:
815 downloads
proxytunnel 1.7.2.161

proxytunnel 1.7.2.161


This is proxytunnel, a program that connects stdin and stdout to an origin server through HTTPS proxy. more>>
This is proxytunnel, a program that connects stdin and stdout to an origin server through HTTPS proxy.
Short guide to installing proxytunnel
On most modern unix systems, use the normal Makefile
On MAC OS X, use Makefile.darwin
If you dont have gnu-getopts, use Makefile.no-gnu-getopts
If you want to enable setproctitle functionality, add a CFLAGS define -DSETPROCTITLE (uncomment sample in Makefile)
Run make and optionally make install.
If you manually want to install, copy proxytunnel to /usr/local/bin and optionally the manual-page from the debian-subdirectory to your manpath.
Enhancements:
- Fixed buffer/malloc issue
- Clean-up usage info/help text
- Remove spurious syslog
- Added build-number to versionstring
<<less
Download (0.042MB)
Added: 2007-07-30 License: GPL (GNU General Public License) Price:
504 downloads
TrouSerS 0.2.9.1

TrouSerS 0.2.9.1


TrouSerS is a Trusted Computing Group Software Stack (TCG TSS) implementation. more>>
TrouSerS is a Trusted Computing Group Software Stack in short TCG TSS implementation.
TrouSerS complies with the TCG Software Stack Specification Version 1.1.
Enhancements:
- Set stdout to be unbuffered when debug is on so that stderr and stdout are interleaved correctly.
- Fixed bugs in PcrExtend: 3 fields of the PCR event struct
- were not being set by trousers before sending the event to
- the TCS.
- Added error returns when setting attributes of an already
- created TPM key object.
- bugfix: spi_tpm.c, removed refs to the ID keys migration
- policy in CollateIdentityRequest.
- bugfix: clntside.c, line 175: sd is not always >= 0
- bugfix: spi_tpm.c, line 1951: uninitialized pubBlob
- bugfix: spi_tpm.c, line 2541: passing NULL to argument 2 of memcpy
- bugfix: tcspbg.c, line 1847: leaving function internal_TCSGetCap with a pointer to freed memory
- bugfix: tcskcm.c, line 939: uninitialized pubKey.key
- bugfix: biosem.c, line 210: uninitialized bytes_read
<<less
Download (1.3MB)
Added: 2007-07-20 License: Common Public License Price:
828 downloads
Math::MagicSquare 2.04

Math::MagicSquare 2.04


Math::MagicSquare is a Magic Square Checker and Designer. more>>
Math::MagicSquare is a Magic Square Checker and Designer.

SYNOPSIS

use Math::MagicSquare;

$a= Math::MagicSquare -> new ([num,...,num],
...,
[num,...,num]);
$a->print("string");
$a->printhtml();
$a->printimage();
$a->check();
$a->rotation();
$a->reflection();

The following methods are available:

new

Constructor arguments are a list of references to arrays of the same length.

$a = Math::MagicSquare -> new ([num,...,num],
...,
[num,...,num]);

check

This function can return 4 value

0: the Square is not Magic
1: the Square is a Semimagic Square (the sum of the rows and the columns is equal)
2: the Square is a Magic Square (the sum of the rows, the columns and the diagonals is equal)
3: the Square ia Panmagic Square (the sum of the rows, the columns, the diagonals and the broken diagonals is equal)

print

Prints the Square on STDOUT. If the method has additional parameters, these are printed before the Magic Square is printed.

printhtml

Prints the Square on STDOUT in an HTML format (exactly a inside a TABLE)

printimage

Prints the Square on STDOUT in png format.

rotation

Rotates the Magic Square of 90 degree clockwise

reflection

Reflect the Magic Square

<<less
Download (0.007MB)
Added: 2007-07-02 License: Perl Artistic License Price:
845 downloads
pcibx 002

pcibx 002


pcibx can be used to control the Catalyst PCIBX32-X and PCIBX64-X PCI Extender card through the parallel port interface. more>>
pcibx can be used to control the Catalyst PCIBX32-X and PCIBX64-X PCI Extender card through the parallel port interface.
This software is run on the host-system. The host-system is the machine, which controlls the Extender. The client-system is the machine with the controller in its PCI slot. (The host- and client-system may be the same machine.)
Enhancements:
- A script to easily calculate average currents was added.
- Data is always printed on stdout instead of stderr now.
<<less
Download (0.014MB)
Added: 2007-07-01 License: GPL (GNU General Public License) Price:
845 downloads
Template::Alloy 1.004

Template::Alloy 1.004


Template::Alloy is a TT2/3, HT, HTE, Tmpl, and Velocity Engine. more>>
Template::Alloy is a TT2/3, HT, HTE, Tmpl, and Velocity Engine.

SYNOPSIS

Template::Toolkit style usage
my $t = Template::Alloy->new(
INCLUDE_PATH => [/path/to/templates],
);

my $swap = {
key1 => val1,
key2 => val2,
code => sub { 42 },
hash => {a => b},
};

# print to STDOUT
$t->process(my/template.tt, $swap)
|| die $t->error;

# process into a variable
my $out = ;
$t->process(my/template.tt, $swap, $out);

### Alloy uses the same syntax and configuration as Template::Toolkit
HTML::Template::Expr style usage
my $t = Template::Alloy->new(
filename => my/template.ht,
path => [/path/to/templates],
);

my $swap = {
key1 => val1,
key2 => val2,
code => sub { 42 },
hash => {a => b},
};

$t->param($swap);

# print to STDOUT (errors die)
$t->output(print_to => *STDOUT);

# process into a variable
my $out = $t->output;

### Alloy can also use the same syntax and configuration as HTML::Template
Text::Tmpl style usage
my $t = Template::Alloy->new;

my $swap = {
key1 => val1,
key2 => val2,
code => sub { 42 },
hash => {a => b},
};

$t->set_delimiters(#[, ]#);
$t->set_strip(0);
$t->set_values($swap);
$t->set_dir(/path/to/templates);

my $out = $t->parse_file(my/template.tmpl);

my $str = "Foo #[echo $key1]# Bar";
my $out = $t->parse_string($str);


### Alloy uses the same syntax and configuration as Text::Tmpl
Velocity (VTL) style usage
my $t = Template::Alloy->new;

my $swap = {
key1 => val1,
key2 => val2,
code => sub { 42 },
hash => {a => b},
};

my $out = $t->merge(my/template.vtl, $swap);

my $str = "#set($foo 1 + 3) ($foo) ($bar) ($!baz)";
my $out = $t->merge($str, $swap);

<<less
Download (0.14MB)
Added: 2007-06-28 License: Perl Artistic License Price:
849 downloads
B::Bytecode 5.8.8

B::Bytecode 5.8.8


B::Bytecode is Perl compilers bytecode backend. more>>
B::Bytecode is Perl compilers bytecode backend.

SYNOPSIS

perl -MO=Bytecode[,-H][,-oscript.plc] script.pl

Compiles a Perl script into a bytecode format that could be loaded later by the ByteLoader module and executed as a regular Perl script.

EXAMPLE

$ perl -MO=Bytecode,-H,-ohi -e print "hi!n"
$ perl hi
hi!

OPTIONS

-b

Save all the BEGIN blocks. Normally only BEGIN blocks that require other files (ex. use Foo;) are saved.

-H

prepend a use ByteLoader VERSION; line to the produced bytecode.

-k

keep the syntax tree - it is stripped by default.

-ooutfile

put the bytecode in instead of dumping it to STDOUT.

-s

scan the script for # line .. directives and for < goto LABEL > expressions. When gotos are found keep the syntax tree.

<<less
Download (12.2MB)
Added: 2007-06-26 License: Perl Artistic License Price:
850 downloads
Archive::SelfExtract 1.3

Archive::SelfExtract 1.3


Archive::SelfExtract is a Perl module to bundle compressed archives with Perl code. more>>
Archive::SelfExtract is a Perl module to bundle compressed archives with Perl code.

SYNOPSIS

use Archive::SelfExtract;

# writes output script to STDOUT
Archive::SelfExtract::createExtractor( "perlcode.pl", "somefiles.zip" );

# with various options:
Archive::SelfExtract::createExtractor( "perlcode.pl", "somefiles.zip",
perlbin => "/opt/perl58/bin/perl",
output_fh => $someFileHandle,
);
See also the command line tool, mkselfextract.

Archive::SelfExtract allows you create Perl programs out of compressed zip archives. Given a piece of code and an archive, it creates a single file which, when run, unpacks the archive and then runs the code.

This module provides a function for creating a self-extractor script, a function to unpack the archive, and utility functions for wrapped programs

<<less
Download (0.006MB)
Added: 2007-06-21 License: Perl Artistic License Price:
859 downloads
dump_kstat 0.05a

dump_kstat 0.05a


dump_kstat is a Perl module created to dump the kstat structure. more>>
dump_kstat is a Perl module created to dump the kstat structure.

This simple script dumps the entire kstat structure to stdout - useful for figuring out what statistics are available.

EXAMPLES

$ dump_kstat
audio.0.audioc0 class = controller
audio.0.audioc0 crtime = 3533.04802622
audio.0.audioc0 hard = 444966
audio.0.audioc0 multiple service = 0
audio.0.audioc0 snaptime = 1993147.67168284
audio.0.audioc0 soft = 0
audio.0.audioc0 spurious = 0
audio.0.audioc0 watchdog = 0

cpu_info.0.cpu_info0 class = misc
cpu_info.0.cpu_info0 clock_MHz = 296
cpu_info.0.cpu_info0 cpu_type = sparc
cpu_info.0.cpu_info0 crtime = 48.927526937
cpu_info.0.cpu_info0 fpu_type = sparc
cpu_info.0.cpu_info0 snaptime = 1993147.67383159
cpu_info.0.cpu_info0 state = on-line
cpu_info.0.cpu_info0 state_begin = 906386861

:
:
:

$

<<less
Download (0.024MB)
Added: 2007-06-19 License: Perl Artistic License Price:
858 downloads
System Configuration Collector Server 1.5.14

System Configuration Collector Server 1.5.14


System Configuration Collector Server generates summaries of scc-data sent by clients. more>>
System Configuration Collector Server generates summaries of scc-data sent by clients. System Configuration Collector Server offers a Web interface that supports searching the snapshots and the logbooks of the systems. It also supports comparing (parts of) the snapshots of systems.
Enhancements:
- This release uses CSS directives to indicate different colors when comparing data from systems.
- It handles the case of an empty log.html when sort is implemented by busybox.
- stdout and stderr are recorded from client runs in the log file when started by scc-pull.
- A puppylinux package has been added.
- style.css has been updated to show variable data in scc snapshots.
<<less
Download (0.12MB)
Added: 2007-06-18 License: GPL (GNU General Public License) Price:
861 downloads
Cascade Textlogger 6.2.0

Cascade Textlogger 6.2.0


Cascade TextLogger software gathers information from the Cascade DataHub and stores it in an ASCII formatted file on disk. more>>
Cascade TextLogger software gathers information from the Cascade DataHub and stores it in an ASCII formatted file on disk.
The structure and format of the ASCII file is completely configurable and the out put files can be used in analysis programs on any platform. Other programs can send data to the Cascade TextLogger by linking the API library and calling the appropriate function calls.
Main features:
- Logs ASCII data to any number of user-specified files and/or stdout.
- Records time-based logs for individual or multiple data points.
- Allows grouping of logs, and grouping of groups, for easier access and control.
- Lets you enable or disable any log or group during run-time.
- Lets you specify how to record multiple points in a log or group based on "any", "all", or "fill" collection criteria.
- Allows any place-holder character string for empty data readings.
- Provides timestamps in GMT or local time, and a wide variety of time formats for output.
- Gives you control over timestamp resolution when logging multiple points.
- Lets you insert text into a log, file, or stdout during run-time.
<<less
Download (MB)
Added: 2007-06-18 License: Free for non-commercial use Price:
859 downloads
Secleted [ 0 ] software to compare
  • Page: 1 of 5
  • 1
  • 2
  • 3
  • 4
  • 5