Main > Free Download Search >

Free stdout fileno software for linux

stdout fileno

Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 299
File::Sync 0.09

File::Sync 0.09


File::Sync is a Perl access to fsync() and sync() function calls. more>>
File::Sync is a Perl access to fsync() and sync() function calls.

SYNOPSIS

use File::Sync qw(fsync sync);
fsync(*FILEHANDLE) or die "fsync: $!";
sync();

use File::Sync qw(fsync);
use IO::File;
$fh = IO::File->new("> /tmp/foo")
or die "new IO::File: $!";
...
fsync($fh) or die "fsync: $!";

The fsync() function takes a Perl file handle as its only argument, and passes its fileno() to the C function fsync(). It returns undef on failure, or true on success.
The fsync_fd() function is used internally by fsync(); it takes a file descriptor as its only argument.

The sync() function is identical to the C function sync().
This module does not export any methods by default, but fsync() is made available as a method of the FileHandle and IO::Handle classes.

<<less
Download (0.004MB)
Added: 2006-06-29 License: Perl Artistic License Price:
1213 downloads
Sys::OutPut 2.1

Sys::OutPut 2.1


Sys::OutPut is a Perl module to help make output easier. more>>
Sys::OutPut is a Perl module to help make output easier.

SYNOPSIS

usage Sys::OutPut;

talk $fmtstr [, @args];

out $fmtstr [, @args];

put $fmtstr [, @args];

err $fmtstr [, @args];

debug $fmtstr [, @args];

$Sys::OutPut::quiet = $::quiet;

$Sys::OutPut::debug = $::debug;

These subroutines will make generating output to STDOUT and STDERR easier.

All of the routines treat the $fmtstr argument as a printf format string, with @args as the format string arguments.

The talk routine generates output to STDERR only if the variable $Sys::OutPut::quiet is non-null and non-zero.

The out routine generates output to STDOUT, with a newline appended to , if it is not already terminated with one.

The put routine generates output to STDOUT, without any additional trailing newline.

The err routine generates output to STDERR, with a newline appended if needed.

The debug routine generates output to STDERR only if the variable

$Sys::OutPut::debug is non-null and non-zero, which is also returned as the result.

This allows for convenient usages such as in the following example:

sub foo {
...
return if debug "Stopping now.";
...
next if debug "Skipping further processing";
...
}

If not defined by the user, the $Sys::OutPut::quiet and $Sys::OutPut::debug variables are initialized from their corresponding main variables $::quiet and $::debug, respectively, unless they are already defined.

<<less
Download (0.010MB)
Added: 2006-11-02 License: Perl Artistic License Price:
1087 downloads
Standalonecomplex 1.3

Standalonecomplex 1.3


Standalonecomplex is a banner scanner used for profiling subnets. more>>
Standalonecomplex is a banner scanner used for profiling subnets. Standalonecomplex project has built in nmap support as well as static port profiling.

Usage:

./standalonecomplex [-h] [-c < file >] [-r < range >] [-l < log >]

-h : print this screen.
-v : display only vulnerable hosts.
-c < file > : configuration file.
-l < log > : file to log output to (default is stdout).
-r < range > : ip range to scan.
<<less
Download (0.004MB)
Added: 2006-01-17 License: Freely Distributable Price:
1375 downloads
Net:IPMessenger::ToStdoutEventHandler 0.06

Net:IPMessenger::ToStdoutEventHandler 0.06


Net:IPMessenger::ToStdoutEventHandler is a Perl module for event handler for standard output. more>>
Net:IPMessenger::ToStdoutEventHandler is a Perl module for event handler for standard output.

SYNOPSIS

use Net::IPMessenger::ToStdoutEventHandler;

...

$ipmsg->add_event_handler( new Net::IPMessenger::ToStdoutEventHandler );

IP Messenger receive event handler for standard output.

METHODS

output

output($user->nickname . " joined.");

This actually converts encodings and output to STDOUT.

debug

Outputs debug receive message.

BR_ENTRY

Outputs "someone joined." message.

BR_EXIT

Outputs "someone left." message.

SENDMSG

Outputs "youve got message from someone." message.

<<less
Download (0.012MB)
Added: 2007-01-25 License: Perl Artistic License Price:
1006 downloads
XML::Filter::Sort 1.01

XML::Filter::Sort 1.01


XML::Filter::Sort is a SAX filter for sorting elements in XML. more>>
XML::Filter::Sort is a SAX filter for sorting elements in XML.

SYNOPSIS

use XML::Filter::Sort;
use XML::SAX::Machines qw( :all );

my $sorter = XML::Filter::Sort->new(
Record => person,
Keys => [
[ lastname, alpha, asc ],
[ firstname, alpha, asc ],
[ @age, num, desc]
],
);

my $filter = Pipeline( $sorter => *STDOUT );

$filter->parse_file(*STDIN);
Or from the command line:
xmlsort

This module is a SAX filter for sorting records in XML documents (including documents larger than available memory). The xmlsort utility which is included with this distribution can be used to sort an XML file from the command line without writing Perl code (see perldoc xmlsort).

<<less
Download (0.025MB)
Added: 2006-09-06 License: Perl Artistic License Price:
1145 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
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
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
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
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
JavaScript::Minifier 0.01

JavaScript::Minifier 0.01


JavaScript::Minifier is a Perl translation of jsmin.c. more>>
JavaScript::Minifier is a Perl translation of jsmin.c.

SYNOPSIS

use JavaScript::Minifier;
my $obj = new JavaScript::Minifier;
$obj->minify(*STDIN, *STDOUT);

use JavaScript::Minifier qw(jsmin);
jsmin(*STDIN, *STDOUT);

This work is a translation from C to Perl of jsmin.c published by Douglas Crockford. Permission is hereby granted to use the Perl version under the same conditions as the jsmin.c on which it is based.

Refer to the JSMin website for further information: http://javascript.crockford.com/jsmin.html
Speed is a bit slower than the python version and the python and perl versions are quite a bit slower than the c version(of course).

Here are test results processing a 71K javascript file. This is one of the largest we have -- most are considerably smaller.

| wall clock seconds(approximate)
---------------------------------------
Perl: | 1.4
Python: | 1.0
C: | 0.03

Tests performed on a Intel(R) Pentium(R) 4 CPU 1.80GHz under no load.

<<less
Download (0.004MB)
Added: 2007-02-12 License: Perl Artistic License Price:
988 downloads
TcpCat 0.1

TcpCat 0.1


TcpCat is a very lightweight tcp util. more>>
TcpCat is a cat like command but for tcp service.

TcpCat is a very lightweight tcp util. It take an IP address and a TCP port as argument, connect to it and give the result back to stdout.

It was written as a lightweight version of netcat. As such it work as the unix cat command but instead of displaying a file it display the result from a tcp service.
<<less
Download (0.010MB)
Added: 2005-09-26 License: GPL (GNU General Public License) Price:
1489 downloads
Symbol 0.02

Symbol 0.02


Symbol is a Perl module created to manipulate Perl symbols and their names. more>>
Symbol is a Perl module created to manipulate Perl symbols and their names.

SYNOPSIS

use Symbol;

$sym = gensym;
open($sym, "filename");
$_ = ;
# etc.

ungensym $sym; # no effect

# replace *FOO{IO} handle but not $FOO, %FOO, etc.
*FOO = geniosym;

print qualify("x"), "n"; # "Test::x"
print qualify("x", "FOO"), "n" # "FOO::x"
print qualify("BAR::x"), "n"; # "BAR::x"
print qualify("BAR::x", "FOO"), "n"; # "BAR::x"
print qualify("STDOUT", "FOO"), "n"; # "main::STDOUT" (global)
print qualify(*x), "n"; # returns *x
print qualify(*x, "FOO"), "n"; # returns *x

use strict refs;
print { qualify_to_ref $fh } "foo!n";
$ref = qualify_to_ref $name, $pkg;

use Symbol qw(delete_package);
delete_package(Foo::Bar);
print "deletedn" unless exists $Foo::{Bar::};

Symbol::gensym creates an anonymous glob and returns a reference to it. Such a glob reference can be used as a file or directory handle.

For backward compatibility with older implementations that didnt support anonymous globs, Symbol::ungensym is also provided. But it doesnt do anything.

Symbol::geniosym creates an anonymous IO handle. This can be assigned into an existing glob without affecting the non-IO portions of the glob.

Symbol::qualify turns unqualified symbol names into qualified variable names (e.g. "myvar" -> "MyPackage::myvar"). If it is given a second parameter, qualify uses it as the default package; otherwise, it uses the package of its caller. Regardless, global variable names (e.g. "STDOUT", "ENV", "SIG") are always qualified with "main::".

Qualification applies only to symbol names (strings). References are left unchanged under the assumption that they are glob references, which are qualified by their nature.

Symbol::qualify_to_ref is just like Symbol::qualify except that it returns a glob ref rather than a symbol name, so you can use the result even if use strict refs is in effect.

Symbol::delete_package wipes out a whole package namespace. Note this routine is not exported by default--you may want to import it explicitly.

<<less
Download (0.015MB)
Added: 2007-05-14 License: Perl Artistic License Price:
894 downloads
CORBA::IDLtreev 1.4

CORBA::IDLtreev 1.4


CORBA::IDLtree is a Perl module that builds abstract syntax trees from CORBA IDL. more>>
CORBA::IDLtree is a Perl module that builds abstract syntax trees from CORBA IDL.

The main export is sub Parse_File which takes an IDL input file name as the parameter, and returns a reference to an array of references to the root nodes constructed (or 0 if there were syntax errors.)

Parse_File uses two auxiliary data structures:

@include_path - Paths where to look for included IDL files
%defines - Symbol definitions for the preprocessor
(cf. the -D switch on many C compilers)
where -DSYM=VAL is represented as
$defines{SYM} = VAL. -DSYM is represented as
$defines{SYM} = 1.

A further export is the sub Dump_Symbols which takes the return value
of Parse_File as the parameter, and prints the trees constructed to
stdout in IDL syntax.

<<less
Download (0.036MB)
Added: 2007-04-16 License: Perl Artistic License Price:
922 downloads
dia2sql 1.4

dia2sql 1.4


dia2sql is yet another dia2sql converter. more>>
dia2sql is yet another dia2sql converter. It uses libxml2 to parse UML objects from a Dia diagram and generates corresponding SQL code to create the tables specified in the UML diagram
It takes one or more filenames and outputs to stdout. Multiple files are considered as one database by merging multiple tables with the same name.
Enhancements:
- This release has been rewritten in C and adds support for database views.
<<less
Download (0.026MB)
Added: 2005-11-18 License: GPL (GNU General Public License) Price:
1437 downloads
Secleted [ 0 ] software to compare
  • Page: 1 of 5
  • 1
  • 2
  • 3
  • 4
  • 5