Solaris 公用桌面环境: 高级用户和系统管理员指南

在执行字符串中使用shell

执行字符串一般不经过shell就直接执行。但是,也可以明确地在执行字符串中调用shell。

例如:

EXEC_STRING           \
   /bin/sh -c \
   'tar -tvf% (File)Arg_1% 2>&1 | \${PAGER:-more;\
   echo "\\n*** Select Close from the Window menu to close ***"'