From ddf6fba3d4df4bb25f00d64e457f67c98272a0e6 Mon Sep 17 00:00:00 2001 From: Jari Sundell Date: Wed, 18 Jun 2014 06:31:21 -0700 Subject: [PATCH] Created COMMAND Scheduling (markdown) --- COMMAND-Scheduling.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 COMMAND-Scheduling.md diff --git a/COMMAND-Scheduling.md b/COMMAND-Scheduling.md new file mode 100644 index 0000000..fd92cc2 --- /dev/null +++ b/COMMAND-Scheduling.md @@ -0,0 +1,31 @@ +Scheduling +========== + +Adding tasks +------------ + +``` +schedule = , start, interval, +``` + +Call command every interval seconds, starting from start. An interval of zero calls the task once, while a start of zero calls it immediately. Currently command is forwarded to the option handler. start and interval may optionally use a time format, dd:hh:mm:ss. F.ex to start a task every day at 18:00, use 18:00:00,24:00:00. + + +Removing tasks +-------------- + +``` +schedule_remove = +``` + +Delete id from the scheduler. + + +Examples +-------- + +``` +schedule = foo, 10, 60, load.start=~/Download/watch_old/*.torrent +schedule = bar, 10, 60, ((print,"foo ",((system.time_seconds)))) +schedule = baz, 18:00:00, 24:00:00, ((print,"it's 6pm ",((system.time_seconds)))) +```