Support This Project

site msg

Description

Manages the directory message file for the current directory.

Syntax

site msg <command> [<argument>]

<command> can be one of:

  • show - print the current contents of the directory message files
  • new - create a new directory message file containing a line of text supplied by <argument>
  • append - append a new line of text supplied by <argument> to the directory message file
  • convert - rename an existing <file> (passed via <argument>) so it becomes the new directory message file
  • delete - delete the directory message file

Limitations

  • Only site operators can use this command.

Examples

site msg show

Prints/displays the contents of the directory message file for the current directory.

site msg new Directory changed successfully.

Creates a new directory message file in the current folder containing the string Directory changed successfully.. This message will be shown to users whenever they enter the directory.

site msg append This directory is deprecated and is used for archival purposes only.

Appends the string This directory is deprecated and is used for archival purposes only. to the directory message file for the current directory.

site msg covert /messages/new.msg

Renames the file /messages/new.msg so it becomes the new directory message file for the current directory. The original file no longer exists after this operation has completed.

site msg delete

Deletes the directory message file for the current directory.