dtspcden.sgm 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <!-- $XConsortium: dtspcden.sgm /main/6 1996/09/08 20:19:30 rws $ -->
  2. <!-- (c) Copyright 1995 Digital Equipment Corporation. -->
  3. <!-- (c) Copyright 1995 Hewlett-Packard Company. -->
  4. <!-- (c) Copyright 1995 International Business Machines Corp. -->
  5. <!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
  6. <!-- (c) Copyright 1995 Novell, Inc. -->
  7. <!-- (c) Copyright 1995 FUJITSU LIMITED. -->
  8. <!-- (c) Copyright 1995 Hitachi. -->
  9. <RefEntry Id="CDEMX.MAN87.rsml.1">
  10. <RefMeta>
  11. <RefEntryTitle>dtspcdenv</RefEntryTitle>
  12. <ManVolNum>special file</ManVolNum>
  13. </RefMeta>
  14. <RefNameDiv>
  15. <RefName><Filename>dtspcdenv</Filename></RefName>
  16. <RefPurpose>environment Variable File for the CDE Subprocess Control Service
  17. </RefPurpose>
  18. </RefNameDiv>
  19. <!-- *************************************************************************-->
  20. <!-- ** (c) Copyright 1994 Hewlett-Packard Company-->
  21. <!-- ** (c) Copyright 1994 International Business Machines Corp.-->
  22. <!-- ** (c) Copyright 1994 Sun Microsystems, Inc.-->
  23. <!-- ** (c) Copyright 1994 Novell, Inc.-->
  24. <!-- *************************************************************************-->
  25. <RefSect1>
  26. <Title>DESCRIPTION</Title>
  27. <Para>The CDE Subprocess Control service provides the
  28. ability for a process running on one system to
  29. invoke another process on a different system.
  30. By default, the environment variables of the
  31. parent process are passed unmodified to the
  32. child process (on the remote host);
  33. however, there are some environment
  34. variables that are given special handling.
  35. In
  36. addition, the user or system administrator can
  37. specify environment variables that should be
  38. modified when they are passed to the child process.
  39. </Para>
  40. <Para>The system-wide environment files are:
  41. <Filename>/etc/dt/config/dtspcdenv</Filename> and
  42. <Filename>/usr/dt/config/dtspcdenv</Filename>
  43. and the user-specific environment file is:
  44. <Filename>$HOME/.dt/dtspcdenv</Filename>.
  45. The file
  46. <Filename>/usr/dt/config/dtspcdenv</Filename> is created
  47. when CDE is installed.
  48. This file may be overwritten
  49. by subsequent CDE installations.
  50. Consequently, local
  51. variable definitions should be placed in the file
  52. <Filename>/etc/dt/config/dtspcdenv</Filename> because this file is not
  53. overwritten during installation.
  54. </Para>
  55. <Para>The environment variable files are evaluated in the following order:
  56. </Para>
  57. <ProgramListing>local host: <Filename>/usr/dt/config/dtspcdenv</Filename>
  58. local host: <Filename>/etc/dt/config/dtspcdenv</Filename>
  59. local host: <Filename>$HOME/.dt/dtspcdenv</Filename>
  60. remote host: <Filename>/usr/dt/config/dtspcdenv</Filename>
  61. remote host: <Filename>/etc/dt/config/dtspcdenv</Filename>
  62. remote host: <Filename>$HOME/.dt/dtspcdenv</Filename>
  63. </ProgramListing>
  64. <Para>The precedence occurs in the reverse order of
  65. evaluation.
  66. Thus, variables in the remote
  67. host's
  68. <Filename>$HOME/.dt/dtspcdenv</Filename> file have the highest
  69. precedence and variables in the local host's
  70. <Filename>/etc/dt/config/dtspcdenv</Filename> file have the lowest
  71. precedence.
  72. In this context, the local host is the
  73. host where a CDE client is running and
  74. the remote host is the host where a remote
  75. process will be started (on behalf of
  76. the local client).
  77. </Para>
  78. <Para>Lines beginning with a numer symbol (#) are considered
  79. comments and are not processed.
  80. </Para>
  81. <Para>The syntax for a non-commented line is:
  82. </Para>
  83. <InformalExample Remap="indent">
  84. <ProgramListing>VAR_NAME=some_value
  85. </ProgramListing>
  86. </InformalExample>
  87. <Para>where
  88. <Emphasis>VAR_NAME</Emphasis> is the name of an
  89. environment variable and
  90. <Emphasis>some_value</Emphasis> is the value assigned to the variable.
  91. </Para>
  92. <Para>If
  93. <Emphasis>some_value</Emphasis> contains a variable reference,
  94. the reference will be replaced by the variable's
  95. value.
  96. For example, if a CDE client has the
  97. following definition in its environment:
  98. </Para>
  99. <InformalExample Remap="indent">
  100. <ProgramListing>PATH=/bin:/sbin:/usr/local/bin
  101. </ProgramListing>
  102. </InformalExample>
  103. <Para>and the following definition occurs in one of the
  104. environment files:
  105. </Para>
  106. <InformalExample Remap="indent">
  107. <ProgramListing>PATH=/opt/foo/bin:$PATH
  108. </ProgramListing>
  109. </InformalExample>
  110. <Para>then before the remote process is executed,
  111. <SystemItem Class="EnvironVar">PATH</SystemItem>
  112. will be expanded to:
  113. </Para>
  114. <InformalExample Remap="indent">
  115. <ProgramListing>PATH=/opt/foo/bin:/bin:/sbin:/usr/local/bin
  116. </ProgramListing>
  117. </InformalExample>
  118. <Para>The environment variable names may consist of
  119. letters, digits or underscores and may be
  120. enclosed in curly braces.
  121. The environment variable files may contain
  122. "unset &lt;variable_name>" commands to prevent
  123. an environment variable from being propagated
  124. to the remote process.
  125. For example, the following line would
  126. prevent the variable
  127. <Emphasis>LIB_PATH</Emphasis> from being
  128. propagated to the remote process:
  129. </Para>
  130. <InformalExample Remap="indent">
  131. <ProgramListing>unset LIB_PATH
  132. </ProgramListing>
  133. </InformalExample>
  134. </RefSect1>
  135. <RefSect1>
  136. <Title>ENVIRONMENT VARIABLES</Title>
  137. <Para>The
  138. <Command>dtspcd</Command> daemon treats the following variables specially:
  139. </Para>
  140. <VariableList>
  141. <VarListEntry>
  142. <Term><SystemItem Class="EnvironVar">DISPLAY</SystemItem></Term>
  143. <ListItem>
  144. <Para>If
  145. <SystemItem Class="EnvironVar">DISPLAY</SystemItem> is set to "unix:&lt;n>", "local:&lt;n>" or ":&lt;n>"
  146. (where &lt;n> is the screen number), then before the
  147. remote process is executed,
  148. <SystemItem Class="EnvironVar">DISPLAY</SystemItem> is changed to the name of the local host and
  149. the screen number is preserved.
  150. </Para>
  151. </ListItem>
  152. </VarListEntry>
  153. <VarListEntry>
  154. <Term><SystemItem Class="EnvironVar">HOME</SystemItem></Term>
  155. <ListItem>
  156. <Para>Before the remote process is executed,
  157. <SystemItem Class="EnvironVar">HOME</SystemItem> is set
  158. to the value of the user's home directory in
  159. the password file on the remote host.
  160. </Para>
  161. </ListItem>
  162. </VarListEntry>
  163. <VarListEntry>
  164. <Term><SystemItem Class="EnvironVar">SHELL</SystemItem></Term>
  165. <ListItem>
  166. <Para>If
  167. <SystemItem Class="EnvironVar">SHELL</SystemItem> is not in the parent processes environment,
  168. <SystemItem Class="EnvironVar">SHELL</SystemItem> is set to the value of the user's shell in
  169. the password file on the remote host.
  170. </Para>
  171. </ListItem>
  172. </VarListEntry>
  173. <VarListEntry>
  174. <Term><SystemItem Class="EnvironVar">PWD</SystemItem></Term>
  175. <ListItem>
  176. <Para>The variable
  177. <SystemItem Class="EnvironVar">PWD</SystemItem> is not propagated to
  178. the remote host.
  179. Note that the above variables will be
  180. overridden by their corresponding definitions
  181. in an environment file.
  182. </Para>
  183. </ListItem>
  184. </VarListEntry>
  185. </VariableList>
  186. </RefSect1>
  187. <RefSect1>
  188. <Title>EXAMPLES</Title>
  189. <Para>The following definition sets the variable
  190. <Emphasis>FOO_BIN_PATH</Emphasis> to the value
  191. <Filename>/var/foo/bin</Filename>: <Literal>FOO_BIN_PATH=/var/foo/bin</Literal></Para>
  192. </RefSect1>
  193. <RefSect1>
  194. <Title>FILES</Title>
  195. <VariableList>
  196. <VarListEntry>
  197. <Term><Filename>/usr/dt/config/dtspcdenv</Filename></Term>
  198. <ListItem>
  199. <Para>System-wide, installed environment variable definitions
  200. used when a process is executed
  201. </Para>
  202. </ListItem>
  203. </VarListEntry>
  204. <VarListEntry>
  205. <Term><Filename>/etc/dt/config/dtspcdenv</Filename></Term>
  206. <ListItem>
  207. <Para>System-wide, locally defined environment variable definitions
  208. used when a process is executed
  209. </Para>
  210. </ListItem>
  211. </VarListEntry>
  212. <VarListEntry>
  213. <Term><Filename>$HOME/.dt/dtspcdenv</Filename></Term>
  214. <ListItem>
  215. <Para>User-specific environment variable definitions used
  216. when a process is executed
  217. </Para>
  218. </ListItem>
  219. </VarListEntry>
  220. </VariableList>
  221. </RefSect1>
  222. <RefSect1>
  223. <Title>SEE ALSO</Title>
  224. <Para>&cdeman.dtspcd;.
  225. </Para>
  226. </RefSect1>
  227. </RefEntry>
  228. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 01:31:55-->