Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ smcmd(1) — IRIX 6.5.3f

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sitemgr(1)

sitemgr.cgi(1)



SMCMD(1)                                                              SMCMD(1)



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

SYNOPSIS
     /usr/sitemgr/bin/smcmd cmd URL { otherdocinfo } { sedpattern }
                                         { -auth authstr } { -pth extrapth }


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:




                                                                        Page 1





SMCMD(1)                                                              SMCMD(1)



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

     otherdocinfo
          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.

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

          "g/<findpattern>/<replacepattern>/"

     -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 (authstr)
          as follows:

          -auth "httpusername:httpuserpassword"

     -pth If you are using SiteMgr to manage only a subsite of your full
          server, specify that relative path as the designated extrapth
          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



                                                                        Page 2





SMCMD(1)                                                              SMCMD(1)



     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)





































                                                                        Page 3






Typewritten Software • bear@typewritten.org • Edmonds, WA 98026