ttrmdir.sgm 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. <!-- $XConsortium: ttrmdir.sgm /main/6 1996/08/30 15:43:07 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. <![ %CDE.C.CDE; [<RefEntry Id="CDEMX.XCDI.MAN5.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN5.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>ttrmdir</RefEntryTitle>
  13. <ManVolNum>user cmd</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Command>ttrmdir</Command></RefName>
  17. <RefPurpose>remove empty directories and inform the ToolTalk service
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- $XConsortium: ttrmdir.sgm /main/6 1996/08/30 15:43:07 rws $-->
  21. <!-- CDE Common Source Format, Version 1.0.0-->
  22. <!-- (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company-->
  23. <!-- (c) Copyright 1993, 1994, 1995 International Business Machines Corp.-->
  24. <!-- (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.-->
  25. <!-- (c) Copyright 1993, 1994, 1995 Novell, Inc.-->
  26. <RefSynopsisDiv>
  27. <CmdSynopsis>
  28. <Command>ttrmdir</Command>
  29. <Arg Choice="opt">&minus;L</Arg>
  30. <Arg><Replaceable>directory</Replaceable></Arg>
  31. <Arg>.&thinsp;.&thinsp;.</Arg>
  32. </CmdSynopsis>
  33. <CmdSynopsis>
  34. <Command>ttrmdir</Command>
  35. <Arg>&minus;h</Arg>
  36. <Arg>&minus;v</Arg>
  37. </CmdSynopsis>
  38. </RefSynopsisDiv>
  39. <RefSect1>
  40. <Title>DESCRIPTION</Title>
  41. <Para>The
  42. <Command>ttrmdir</Command> utility
  43. invokes
  44. <Command>rmdir</Command>(1) to remove empty directories and informs
  45. ToolTalk about its actions so that the ToolTalk objects
  46. associated with the deleted directories can also be deleted.
  47. </Para>
  48. <Para>The
  49. <Command>ttrmdir</Command> utility removes the ToolTalk objects before it removes the directories
  50. and does not check whether a directory is empty or whether the
  51. directory-removing operation will succeed before performing the
  52. object-removing operation.
  53. </Para>
  54. </RefSect1>
  55. <RefSect1>
  56. <Title>OPTIONS</Title>
  57. <![ %CDE.C.XO; [
  58. <Para>The
  59. <Command>ttrmdir</Command> utility supports the &str-Zu;.
  60. </Para>
  61. ]]>
  62. <Para>The following options are available:
  63. </Para>
  64. <VariableList>
  65. <VarListEntry>
  66. <Term><Literal>&minus;h</Literal></Term>
  67. <ListItem>
  68. <Para>Write a help message for invoking
  69. <Command>ttrmdir</Command> and then exit.
  70. </Para>
  71. </ListItem>
  72. </VarListEntry>
  73. <VarListEntry>
  74. <Term><Literal>&minus;L</Literal></Term>
  75. <ListItem>
  76. <Para>Remove the ToolTalk objects of the directories, but do not invoke
  77. <Command>rmdir</Command>(1) to remove the actual directories.
  78. </Para>
  79. </ListItem>
  80. </VarListEntry>
  81. <VarListEntry>
  82. <Term><Literal>&minus;v</Literal></Term>
  83. <ListItem>
  84. <Para>Write the version number of
  85. <Command>ttrmdir</Command> and then exit.
  86. </Para>
  87. </ListItem>
  88. </VarListEntry>
  89. </VariableList>
  90. <Para><![ %CDE.C.XO; [It is unspecified whether the
  91. <Literal>&minus;p</Literal> option to
  92. <Command>cp</Command>(1) is supported.
  93. ]]><![ %CDE.C.CDE; [The
  94. <Literal>&minus;p</Literal> option to
  95. <Command>cp</Command>(1) is not supported.
  96. ]]></Para>
  97. </RefSect1>
  98. <RefSect1>
  99. <Title>OPERANDS</Title>
  100. <Para>The following operand is supported:
  101. </Para>
  102. <VariableList>
  103. <VarListEntry>
  104. <Term><Emphasis>directory</Emphasis></Term>
  105. <ListItem>
  106. <Para>A pathname of an empty directory to be removed.
  107. </Para>
  108. </ListItem>
  109. </VarListEntry>
  110. </VariableList>
  111. </RefSect1>
  112. <RefSect1>
  113. <Title>STDIN</Title>
  114. <Para>Not used.
  115. </Para>
  116. </RefSect1>
  117. <RefSect1>
  118. <Title>INPUT FILES</Title>
  119. <Para>The input files specified as operands can be of any file type.
  120. </Para>
  121. </RefSect1>
  122. <RefSect1>
  123. <Title>ENVIRONMENT VARIABLES</Title>
  124. <Para>The following environment variables affect the execution of
  125. <Command>ttrmdir</Command>:</Para>
  126. <VariableList>
  127. <VarListEntry>
  128. <Term><SystemItem Class="EnvironVar">LANG</SystemItem></Term>
  129. <ListItem>
  130. <Para>Provide a default value for the internationalization variables
  131. that are unset or null.
  132. If
  133. <SystemItem Class="EnvironVar">LANG</SystemItem> is unset or null, the corresponding value from the
  134. implementation-specific default locale will be used.
  135. If any of the internationalization variables contains an invalid setting, the
  136. utility behaves as if none of the variables had been defined.
  137. </Para>
  138. </ListItem>
  139. </VarListEntry>
  140. <VarListEntry>
  141. <Term><Emphasis>LC_ALL</Emphasis></Term>
  142. <ListItem>
  143. <Para>If set to a non-empty string value,
  144. override the values of all the other internationalization variables.
  145. </Para>
  146. </ListItem>
  147. </VarListEntry>
  148. <VarListEntry>
  149. <Term><Emphasis>LC_MESSAGES</Emphasis></Term>
  150. <ListItem>
  151. <Para>Determine the locale that is used to affect
  152. the format and contents of diagnostic
  153. messages written to standard error
  154. and informative messages written to standard output.
  155. </Para>
  156. </ListItem>
  157. </VarListEntry>
  158. <VarListEntry>
  159. <Term><SystemItem Class="EnvironVar">NLSPATH</SystemItem></Term>
  160. <ListItem>
  161. <Para>Determine the location of message catalogues
  162. for the processing of
  163. <Emphasis>LC_MESSAGES</Emphasis>.</Para>
  164. </ListItem>
  165. </VarListEntry>
  166. </VariableList>
  167. </RefSect1>
  168. <RefSect1>
  169. <Title>RESOURCES</Title>
  170. <Para>None.
  171. </Para>
  172. </RefSect1>
  173. <RefSect1>
  174. <Title>ASYNCHRONOUS EVENTS</Title>
  175. <![ %CDE.C.XO; [
  176. <Para>Default.
  177. </Para>
  178. ]]>
  179. <![ %CDE.C.CDE; [
  180. <Para>The
  181. <Command>ttrmdir</Command> utility takes the standard action for all signals.
  182. </Para>
  183. ]]>
  184. </RefSect1>
  185. <RefSect1>
  186. <Title>STDOUT</Title>
  187. <Para>When the
  188. <Literal>&minus;h</Literal> option is used,
  189. <Command>ttrmdir</Command> writes to standard output a help message
  190. in an unspecified format.
  191. </Para>
  192. <Para>When the
  193. <Literal>&minus;v</Literal> option is used,
  194. <Command>ttrmdir</Command> writes to standard output a version number
  195. in an unspecified format.
  196. </Para>
  197. </RefSect1>
  198. <RefSect1>
  199. <Title>STDERR</Title>
  200. <Para>Used only for diagnostic messages.
  201. </Para>
  202. </RefSect1>
  203. <RefSect1>
  204. <Title>OUTPUT FILES</Title>
  205. <Para>None.
  206. </Para>
  207. </RefSect1>
  208. <RefSect1>
  209. <Title>EXTENDED DESCRIPTION</Title>
  210. <Para>None.
  211. </Para>
  212. </RefSect1>
  213. <RefSect1>
  214. <Title>EXIT STATUS</Title>
  215. <Para>The following exit values are returned:
  216. </Para>
  217. <VariableList>
  218. <VarListEntry>
  219. <Term>0</Term>
  220. <ListItem>
  221. <Para>All directories and ToolTalk objects were removed successfully.
  222. </Para>
  223. </ListItem>
  224. </VarListEntry>
  225. <VarListEntry>
  226. <Term>>0</Term>
  227. <ListItem>
  228. <Para>An error occurred or the invoked
  229. <Command>rmdir</Command>(1) command exited with a non-zero value.
  230. </Para>
  231. </ListItem>
  232. </VarListEntry>
  233. </VariableList>
  234. </RefSect1>
  235. <RefSect1>
  236. <Title>CONSEQUENCES OF ERRORS</Title>
  237. <Para>Default.
  238. </Para>
  239. </RefSect1>
  240. <![ %CDE.C.CDE; [<RefSect1>
  241. <Title>FILES</Title>
  242. <VariableList>
  243. <VarListEntry>
  244. <Term>/mountpoint/TT_DB</Term>
  245. <ListItem>
  246. <!-- ex-TP-->
  247. <Para>The directory used as a database
  248. for the ToolTalk objects of files in the
  249. file system mounted at
  250. <Emphasis>/mountpoint</Emphasis>.</Para>
  251. </ListItem>
  252. </VarListEntry>
  253. </VariableList>
  254. </RefSect1>]]>
  255. <RefSect1>
  256. <Title>APPLICATION USAGE</Title>
  257. <Para>The definition of an empty directory
  258. is one that contains, at most,
  259. directory entries for dot and dot-dot.
  260. </Para>
  261. </RefSect1>
  262. <RefSect1>
  263. <Title>EXAMPLES</Title>
  264. <Para>None.
  265. </Para>
  266. </RefSect1>
  267. <RefSect1>
  268. <Title>SEE ALSO</Title>
  269. <Para><![ %CDE.C.CDE; [<Command>rmdir</Command>(1)]]><![ %CDE.C.XO; [<Command>rmdir</Command> in the &str-ZC;]]>,
  270. &cdeman.ttrm;, &cdeman.ttsession;.</Para>
  271. </RefSect1>
  272. </RefEntry>
  273. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->