5 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a list of epoch times delimited by "-" as follows:
1335078000 - 1335176700
1335340800 - 1335527400
1335771300 - 1335945600
1336201200 - 1336218000
The corresponding dates are:
20120422 1000 - 20120423 1325
20120425 1100 - 20120427 1450
20120430 1035 - 20120502 1100 ... (3 Replies)
Discussion started by: alex2005
2. UNIX for Dummies Questions & Answers
Below is the sample logfile:
Userids Date Time
acb Checkout time: 2013-11-20 17:00
axy Checkout time: 2013-11-22 12:00
der Checkout time: 2013-11-17 17:00
xyz Checkout time: 2013-11-19 16:00
ddd Checkout time: 2013-11-21 16:00
aaa Checkout... (9 Replies)
Discussion started by: asjaiswal
3. Shell Programming and Scripting
I have a bunch of hosts which I need to run a common script. I need a sleep timee which will delay the execution based on the hostname. Usually the hostname of the servers are host01, host02 .. host16 with which I cam up with this -
sleeptimer=$(( $(hostname -s|tr -cd... (3 Replies)
Discussion started by: deunan
4. Shell Programming and Scripting
My script is nearly complete, there is just one last piece that needs to be added in.
I need to check for the time, and if it is lets say for example. Sunday at 5:00AM, my script cannot run.
I would assume it would be something like this, parden the terrible pseudocode
... (7 Replies)
Discussion started by: jeffs42885
I am facing a problem in recv() system call i.e.. in my project i have to implement timer for sending (data) and resending purpose when there is no acknowledgement.
is there any way that recv() sys call has its own timer i.e., for ex: recv() has to wait for 10 secs.
if any one knows... (2 Replies)
Discussion started by: Rohil
LEARN ABOUT DEBIAN
IO::Async::Timer(3pm) User Contributed Perl Documentation IO::Async::Timer(3pm)
"IO::Async::Timer" - base class for Notifiers that use timed delays
This module provides a subclass of IO::Async::Notifier for implementing notifiers that use timed delays. For specific implementations, see
one of the subclasses:
o IO::Async::Timer::Absolute - event callback at a fixed future time
o IO::Async::Timer::Countdown - event callback after a fixed delay
o IO::Async::Timer::Periodic - event callback at regular intervals
$timer = IO::Async::Timer->new( %args )
Constructs a particular subclass of "IO::Async::Timer" object, and returns it. This constructor is provided for backward compatibility to
older code which doesn't use the subclasses. New code should directly construct a subclass instead.
mode => STRING
The type of timer to create. Currently the only allowed mode is "countdown" but more types may be added in the future.
Once constructed, the "Timer" will need to be added to the "Loop" before it will work. It will also need to be started by the "start"
$running = $timer->is_running
Returns true if the Timer has been started, and has not yet expired, or been stopped.
Starts the Timer. Throws an error if it was already running.
If the Timer is not yet in a Loop, the actual start will be deferred until it is added. Once added, it will be running, and will expire at
the given duration after the time it was added.
As a convenience, $timer is returned. This may be useful for starting timers at construction time:
$loop->add( IO::Async::Timer->new( ... )->start );
Stops the Timer if it is running. If it has not yet been added to the "Loop" but there is a start pending, this will cancel it.
Paul Evans <firstname.lastname@example.org>
perl v5.14.2 2012-10-24 IO::Async::Timer(3pm)