9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear All,
Can someone help to command or program to transfer the file from windows to Unix server and from one unix server to another Unix server in secure way.
I would request no samba client. (4 Replies)
Discussion started by: yadavricky
4 Replies
2. Shell Programming and Scripting
Hi there. I am fairly new to scripting in BASH so please forgive my clumsy syntax and analogy as I try to explain what I am trying to accomplish.
I have a list of mundane functions that I currently call from a script file. What I wish to do is to accurately record into a log file the times that... (17 Replies)
Discussion started by: Tenuous
17 Replies
3. UNIX for Dummies Questions & Answers
How does unix system administration, unix programming, unix network programming differ?
Please help. (0 Replies)
Discussion started by: thulasidharan2k
0 Replies
4. Programming
in its man-page pthread_mutex_timedlock documents that the absolute timeout parameter should be based on the CLOCK_REALTIME clock or in the system clock. All this depending on whether the 'Timers option' is supported or not.
What do they mean by 'Timers option'? How could I tell for sure what... (8 Replies)
Discussion started by: ramestica
8 Replies
5. Shell Programming and Scripting
Hi Experts,
I have a requirement where i need to setup a batch job which runs everymonth and move the pdf files from unix server to windows servers.
Could some body provide the inputs for this.
and also please provide the inputs on how to map the network dirve in the unix like that... (1 Reply)
Discussion started by: ger199901
1 Replies
6. Programming
Hi ,
I am trying to learn timers in linux kernel. I am trying to write a program where I can configure a timer to tick in every 5 seconds and a function should thus exicute in every five seconds. I tried one program with the help of linux/timer.h headerfile but I couldnt get the... (4 Replies)
Discussion started by: iamjayanth
4 Replies
7. Shell Programming and Scripting
Hi,
My local server is :/usr/abcd/
Remote server is :/Usr/host/test/
I want to send files from local unix directory(All files starting with O_999) to
remote host unix directory.
Can any body give me the Unix Shell script to do this.
One more doubt: Shall we need to change the file... (1 Reply)
Discussion started by: raja_1234
1 Replies
8. UNIX for Advanced & Expert Users
hi
i want run an unix application from a windows program/application.i am using SSH(command line version)to log on to a unix machine from windows. the application has to read a configuration file inorder to run. the configuration file .CFG is in bin in my home directory. but the application... (1 Reply)
Discussion started by: megastar
1 Replies
9. UNIX for Dummies Questions & Answers
Okee problems...!!
What is happening: Unix server with some programms, workstations are windows 2000, the workstations work good but when you start a programm on the Unix server the CPU of the workstations go to 100% usage resulting that the system gets very slow. The programm well its running so... (2 Replies)
Discussion started by: zerocool
2 Replies
EVTIMER(3) 1 EVTIMER(3)
The EvTimer class
INTRODUCTION
EvTimer watchers are simple relative timers that generate an event after a given time, and optionally repeating in regular intervals after
that.
The timers are based on real time, that is, if one registers an event that times out after an hour and resets the system clock to January
last year , it will still time out after(roughly) one hour. "Roughly" because detecting time jumps is hard, and some inaccuracies are
unavoidable.
The callback is guaranteed to be invoked only after its timeout has passed (not at, so on systems with very low-resolution clocks this
might introduce a small delay). If multiple timers become ready during the same loop iteration then the ones with earlier time-out values
are invoked before ones of the same priority with later time-out values (but this is no longer true when a callback calls EvLoop::run
recursively).
The timer itself will do a best-effort at avoiding drift, that is, if a timer is configured to trigger every 10 seconds, then it will nor-
mally trigger at exactly 10 second intervals. If, however, the script cannot keep up with the timer because it takes longer than those 10
seconds to do) the timer will not fire more than once per event loop iteration.
CLASS SYNOPSIS
EvTimer
EvTimerextends
EvWatcher
Properties
o public$repeat
o public$remaining
Inherited properties
o public$is_active
o public$data
o public$is_pending
o public$priority
Methods
o public void EvTimer::again (void )
o public EvTimer::__construct NULL (double $after, double $repeat, callable $callback, [mixed $data], [int $priority])
o finalpublicstatic EvTimer EvTimer::createStopped NULL (double $after, double $repeat, callable $callback, [mixed $data], [int $pri-
ority])
o public void EvTimer::set (double $after, double $repeat)
Inherited methods
o public int EvWatcher::clear (void )
o abstractpublic EvWatcher::__construct (void )
o public void EvWatcher::feed (int $revents)
o public EvLoop EvWatcher::getLoop (void )
o public void EvWatcher::invoke (int $revents)
o public bool EvWatcher::keepalive ([bool $value])
o public void EvWatcher::setCallback (callable $callback)
o public void EvWatcher::start (void )
o public void EvWatcher::stop (void )
PROPERTIES
o $repeat
- If repeat is 0.0 , then it will automatically be stopped once the timeout is reached. If it is positive, then the timer will
automatically be configured to trigger again every repeat seconds later, until stopped manually.
o $remaining
- Returns the remaining time until a timer fires. If the timer is active, then this time is relative to the current event loop
time, otherwise it's the timeout value currently configured. That is, after instanciating an EvTimer with an $after value of 5.0
and $repeat value of 7.0 , $remaining returns 5.0 . When the timer is started and one second passes, $remaining will return 4.0 .
When the timer expires and is restarted, it will return roughly 7.0 (likely slightly less as callback invocation takes some time
too), and so on.
PHP Documentation Group EVTIMER(3)