smcmd(1)

smcmd - command-line web content administration and publishing tool

As shipped in IRIX 6.5.22. Unchanged since IRIX 6.5.

NAME
     smcmd - command-line web content administration and publishing tool

SYNOPSIS
     /usr/sitemgr/bin/smcmd cmd URL { other_doc_info } { sed_pattern }
                                         { -auth auth_str } { -pth extra_pth }


DESCRIPTION
     smcmd allows a user (from the command-line; within a window shell) to
     publish documents and perform some administrative tasks on a web site
     that has the proper SiteMgr server extensions (see sitemgr.cgi(1))
     installed.

OPTIONS
     Command line options are described below.

     cmd  is a required argument, and must be one of the following:

          -co        check out a document.

          -ci        check in a document; "{other_doc_info}" required.

          -rm        remove a document.

          -lock      lock a document.

          -unlock    unlock a document.

          -rename    rename a document; "{other_doc_info}" required.

          -cp        make a copy of a document; "{other_doc_info}" required.

          -mv        move a document; "{other_doc_info}" required.

          -sed       perform a "find and replace" operation on a document;
                     "{sed_pattern}" required.

          -validate  validate (links, encoding, spelling) a document.

          -rlog      show the revision (version control) log for a document.

          -rdiff     show the revision diff[erences] for a document version.

     URL  This argument is required and must contains the full URL information
          for a document on the "SiteMgr-enabled" web site. Only one document
          at a time can be specified; "wild-card"'s are not allowed when using
          smcmd.

          See the Examples section for further information on how this
          argument is specified. The syntax is as follows:

          http://server{/document{,version}}

     other_doc_info
          This option is either a local filename (if used with -ci), or a
          relative URL specification (minus the http://server portion) for the
          command options: -rename, -cp, -mv.

     sed_pattern
          This argument is used to designate the pattern specification for the
          global "find and replace" (-sed) operation. The syntax is as
          follows:

          "g/<find_pattern>/<replace_pattern>/"

     -auth
          Allows for specification of a HTTP authorization string. If your web
          site is secure, and authorization is required, you can specify your
          necessary HTTP server user name and password designation (auth_str)
          as follows:

          -auth "http_user_name:http_user_password"

     -pth If you are using SiteMgr to manage only a subsite of your full
          server, specify that relative path as the designated extra_pth
          variable.  Refer to the SiteMgr release notes or on-line help for
          further information on this topic.

EXAMPLES
     To check in a document:

       smcmd -ci http://www.foo.com/dir/doc.html /usr/tmp/file1.html

     To check out a document (smcmd will inform you where the document is
     placed):

       smcmd -co http://www.foo.com/dir/doc.html

     To copy a document that already exists on your web site:

       smcmd -cp http://www.foo.com/dir/doc.html /new_dir/new_doc.html

     To change all occurrences of a string in a document to another value:

       smcmd -sed http://www.foo.com/dir/doc.html 'g/July 4th/JULY FOURTH/'

     To validate a document:

       smcmd -validate http://www.foo.com/dir/doc.html

     To retrieve revision log information for a document:

       smcmd -rlog http://www.foo.com/dir/doc.html
     To retrieve revision differences between a designated version of the
     document ("1.12" in the example), and the current version:

       smcmd -rdiff http://www.foo.com/dir/doc.html,1.12

     To validate a document on a secure site:

       smcmd -validate http://www.foo.com/dir/doc.html -auth "usr1:pass1"


FILES
     /usr/sitemgr/bin/smcmd

SEE ALSO
     sitemgr(1), sitemgr.cgi(1)