1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE part PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "../docbook-xml/docbookx.dtd"
5 <!ENTITY % myents SYSTEM "../fvwm.ent" >
9 <!-- $Id: Exec.xml,v 1.3 2007/06/16 12:38:46 griph Exp $ -->
15 <command>Exec</command
17 ><replaceable>command</replaceable
22 <replaceable>command</replaceable>.
23 You should not use an ampersand '&' at the end of the command. You
24 probably want to use an additional "exec" at the beginning of
25 <replaceable>command</replaceable>.
26 Without that, the shell that fvwm invokes to run your command
27 stays until the command exits. In effect, you'll have twice as
28 many processes running as you need. Note that some shells are
29 smart enough to avoid this, but it never hurts to include the
32 <para>The following example binds function key
34 in the root window, with no modifiers, to the exec function. The
35 program rxvt is started with an assortment of options.</para>
39 <fvwmref cmd="Key"/> F1 R N Exec exec rxvt -fg yellow -bg blue \
43 <para>Note that this function doesn't wait for
44 <replaceable>command</replaceable>
45 to complete, so things like:</para>
48 Exec "echo <fvwmref cmd="AddToMenu"/> ... > /tmp/file"
49 <fvwmref cmd="Read"/> /tmp/file
52 <para>do not work reliably
54 <fvwmref cmd="PipeRead"/>