05-19-2014
Sure!
There are a lot of ways to do almost anything.
Why would we want to reinvent the wheel?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I create a file touch 1201093003 fichcomp
and inside a repertory (which hava a lot of files) I want to list all files created before this file :
find *.* \! -maxdepth 1 - newer fichcomp but this command returned bash: /usr/bin/find: Argument list too long
but i make a filter all... (1 Reply)
Discussion started by: yacsil
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I would like to know the command to get the files order in descending order with "FIND" command.
Appreciate your help
Thanks (4 Replies)
Discussion started by: TonySolarisAdmi
4 Replies
3. Shell Programming and Scripting
trying to find a way to locate files modified in the last hour in a shell script, unfortunately the command 'find . -mmin -60' is not supported on SunOS 5.10 (works on OpenSolaris 5.11 :mad:)
Does anyone know a method of doing this in shell script on 5.10?
cheers (19 Replies)
Discussion started by: rich@ardz
19 Replies
4. AIX
Hi
I'm logged in to an AIX box now and we need to do an audit on this box.
cbssapr01:# pwd
/
Which command will show all the files and directories owned by root user with permissions as 777 ? (8 Replies)
Discussion started by: newtoaixos
8 Replies
5. Shell Programming and Scripting
Hi All,
I need to list the files based modification time of the files from a directory, I cannot use "ls -t" as there are lot of files, which "ls" command cannot handle. New files will land there daily. So iam looking for an alternative through "find"command.
All suggestions are welcomed.
... (6 Replies)
Discussion started by: Kesavan
6 Replies
6. UNIX for Dummies Questions & Answers
hi,
i want to list the files from the below find commands output.
find ./* -name "*.txt" -type f -mtime +10
will give the output like
./a.txt
but i need the output in the format like (ls -lrt a.txt )
-rw-rw-rw- 1 srea nast 5 May 23 07:34 a.txt
i used xargs for the... (4 Replies)
Discussion started by: msathees
4 Replies
7. UNIX for Dummies Questions & Answers
HP Unix Version: HP-UX B.11.31 U ia64
Question
I look for script or command to find files which are older than one hour.
Tried below;
# set the file time to 1 hours ago
touch -t 201307160700 ./touchfile
find /app/grid/product/11.2.0.3/rdbms/audit -name '*.aud' -type f ! -newer... (4 Replies)
Discussion started by: Siva SQL
4 Replies
8. Shell Programming and Scripting
Hi Gurus,
I want to find the file created within one hour in solaris.
I have tried below command, but it is no lucky.
$find . -mtime -1/24, -name "abc*"
above command give me the file name which created two hours ago
find . -cmin -60, -name "abc*"
above command I got error as... (4 Replies)
Discussion started by: ken6503
4 Replies
9. Shell Programming and Scripting
Hi,
Out of a list of files in a directory, I want to find the files which were created/modified more than 1 hour ago. I am using HP -UNIX and it does not support the argument -mmin. Please advise.
I am using # !/bin/sh (4 Replies)
Discussion started by: jhilmil
4 Replies
10. Shell Programming and Scripting
I need to find a word '% Retail by State' in the folder /usr/sas/reports/RetailSalesTaxallocation.
When I tried like below,
-bash-4.1$ cd /usr/sas/reports/RetailSalesTaxallocation
-bash-4.1$ find ./ -name % Retail by State
find: paths must precede expression: Retail
Usage: find ... (10 Replies)
Discussion started by: Ram Kumar_BE
10 Replies
LEARN ABOUT DEBIAN
poe::component::connection::keepalive
POE::Component::Connection::Keepalive(3pm) User Contributed Perl Documentation POE::Component::Connection::Keepalive(3pm)
NAME
POE::Component::Connection::Keepalive - a wheel wrapper around a kept-alive socket
VERSION
version 0.271
SYNOPSIS
See the SYNOPSIS for POE::Component::Client::Keepalive for a
complete working example.
my $connection = $response->{connection};
$heap->{connection} = $connection;
$connection->start( InputEvent => "got_input" );
delete $heap->{connection}; # When done with it.
DESCRIPTION
POE::Component::Connection::Keepalive is a helper class for POE::Component::Client::Keepalive. It wraps managed sockets, providing a few
extra features.
Connection objects free their underlying sockets when they are DESTROYed. This eliminates the need to explicitly free sockets when you are
done with them.
Connection objects manage POE::Wheel::ReadWrite objects internally, saving a bit of effort.
new
Creates a new POE::Component::Connection::Keepalive instance. It accepts two parameters: A socket handle (socket) and a reference to a
POE::Component::Client::Keepalive object to manage the socket when the connection is destroyed.
my $conn = POE::Component::Connection::Keepalive->new(
socket => $socket_handle,
manager => $poe_component_client_keepalive,
);
new() is usually called by a POE::Component::Client::Keepalive object.
start
Starts a POE::Wheel::ReadWrite object. All parameters except Handle for start() are passed directly to POE::Wheel::ReadWrite's
constructor. Handle is provided by the connection object. start() returns a reference to the new POE::Wheel::ReadWrite object, but it
is not necessary to save a copy of that wheel. The connection object keeps a copy of the reference internally, so the wheel will persist
as long as the connection does. The POE::Wheel::ReadWrite object will be DESTROYed when the connection object is.
# Asynchronous connection from Client::Keepalive.
sub handle_connection {
my $connection_info = $_[ARG0];
$_[HEAP]->{connection} = $connection_info->{connection};
$heap->{connection}->start(
InputEvent => "got_input",
ErrorEvent => "got_error",
);
}
# Stop the connection (and the wheel) when an error occurs.
sub handle_error {
delete $_[HEAP]->{connection};
}
wheel
Returns a reference to the internal POE::Wheel::ReadWrite object, so that methods may be called upon it.
$heap->{connection}->wheel()->pause_input();
close
Closes the connection immediately. Calls shutdown_input() and shutdown_output() on the wheel also.
SEE ALSO
POE POE::Component::Client::Keepalive POE::Wheel::ReadWrite
BUGS
None known.
LICENSE
This distribution is copyright 2004-2009 by Rocco Caputo. All rights are reserved. This distribution is free software; you may
redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
Rocco Caputo <rcaputo@cpan.org>
Special thanks to Rob Bloodgood.
perl v5.14.2 2012-05-15 POE::Component::Connection::Keepalive(3pm)