在执行字符串中指定shell:
/bin/sh -c 'command' /bin/ksh -c 'command' /bin/csh -c 'command'
下列执行字符串举例说明了使用shell传输的动作。
EXEC_STRING /bin/sh -c 'ps | lp'
下例的执行字符串更复杂,需要有shell处理并能接受文件参数。
EXEC_STRING /bin/sh -c 'tbl%Arg _1"手册页:"% | troff -man'
下列执行字符串要求参数为压缩文件。该动作将文件解压缩,并用lp-oraw命令打印文件。
EXEC_STRING /bin/sh -c 'cat%Arg _1 "File to print:"% | \ uncompress | lp -oraw'
下列执行字符串启动shell正文。
EXEC_STRING /usr/local/bin/StartGnuClient