X-Git-Url: http://git.annexia.org/?p=whenjobs.git;a=blobdiff_plain;f=tools%2Fwhenjobs.pod;h=2acec9f96c554b262e77a8f65c14fce0399e4b0b;hp=5a9ac7282b74339290921f5f1fc8b96d90fb6deb;hb=600c8000490fa8279b23ce866e9ecc2a90e5f79a;hpb=be26a2cdba2f9229bdfee30770fd18c6841c1bc5 diff --git a/tools/whenjobs.pod b/tools/whenjobs.pod index 5a9ac72..2acec9f 100644 --- a/tools/whenjobs.pod +++ b/tools/whenjobs.pod @@ -357,6 +357,10 @@ result is subtraction, multiplication, division or modulo. Other types give an error. Note that I really is an infix operator. +=item B I + +If I is a string, this returns the length of the string. + =item I The value of the named variable. @@ -494,6 +498,21 @@ well-known directory, eg. C<$HOME>, C etc. The shell script runs as the ordinary user. It has no special privileges. +=head2 JOB NAMES + +Jobs are given implicit names (C, C etc.). You can also +name jobs explicitly by preceeding the "every" or "when" statement +with C: + + job "poll source" + every 10 seconds : + << + # ... + >> + +The job name is passed to the shell script in the C<$JOBNAME> +environment variable. +