1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!-- $Id: Schedule.xml,v 1.3 2007/06/16 12:38:46 griph Exp $ -->
3 <!DOCTYPE part PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
4 "../docbook-xml/docbookx.dtd"
6 <!ENTITY % myents SYSTEM "../fvwm.ent" >
11 <section id='Schedule'>
12 <title>Schedule</title>
15 <command>Schedule</command
16 ><arg choice='opt'>Periodic</arg
18 ><replaceable>delay_ms</replaceable
21 ><replaceable>command_id</replaceable
24 ><replaceable>command</replaceable
29 <replaceable>command</replaceable>
30 is executed after about
31 <replaceable>delay_ms</replaceable>
32 milliseconds. This may be useful in some tricky setups. The
33 <replaceable>command</replaceable>
34 is executed in the same context window as the
35 <emphasis remap='B'>Schedule</emphasis>
36 command. An optional integer argument
37 <replaceable>command_id</replaceable>
38 may be given in decimal, hexadecimal or octal format. This id can
40 <fvwmref cmd="Deschedule"/>
41 command to remove the scheduled command before it is executed. If
42 no id is given, fvwm uses negative id numbers, starting with -1
43 and decreasing by one with each use of the
44 <emphasis remap='B'>Schedule</emphasis>
47 <emphasis remap='B'>Schedule</emphasis>
48 command and its arguments undergo the usual command line
50 <replaceable>command</replaceable>
51 is finally executed, it is expanded again. It may therefore be
52 necessary to quote the parts of the command that must not be
53 expanded twice.</para>
55 <para>Note: A window's id as it is returned with $[w.id] can be used as
57 <replaceable>command_id</replaceable>.
61 <fvwmref cmd="Current"/> Schedule 1000 $[w.id] <fvwmref cmd="WindowShade"/>
66 <emphasis remap='B'>Schedule</emphasis>
67 command also supports the optional keyword
68 <fvwmopt cmd="Schedule" opt="Periodic"/>
69 which indicates that the
70 <replaceable>command</replaceable>
71 should be executed every
72 <replaceable>delay_ms</replaceable>.
76 Schedule Periodic 10000 <fvwmref cmd="PipeRead"/> '[ -N "$MAIL" ] && echo \
81 <fvwmref cmd="Deschedule"/>
82 command to stop periodic commands.</para>