File: timer_add

package info (click to toggle)
pork 0.99.7-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,396 kB
  • ctags: 3,949
  • sloc: ansic: 34,135; sh: 3,392; perl: 797; makefile: 535
file content (18 lines) | stat: -rw-r--r-- 703 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
SYNTAX: PORK::timer_add(interval, times, command)
  Adds a timer event that will cause a command to be run some number of times at a specified interval.

INPUT PARAMETERS
	interval: The interval at which the command will be run.
	times   : The number of times to run the command. 0 means unlimited.
	command : The command that will be run. The command can be any command that can be entered on the command line.

RETURN VALUE
	On success, returns the reference number of the timer event that was installed, on failure, returns -1.

EXAMPLES
	PORK::timer_add(30, 10, "echo testing");
		- Causes the command "echo testing" to be executed every 30 seconds, a total of 10 times.

SEE ALSO
	timer
	timer add