*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> cpset (1m)              
Title
Content
Arch
Section
 

Contents


 cpset(1M)                                                         cpset(1M)




 NAME    [Toc]    [Back]
      cpset - install object files in binary directories

 SYNOPSIS    [Toc]    [Back]
      cpset [-o] object directory [-mode [-owner [-group]]]

 DESCRIPTION    [Toc]    [Back]
      The cpset command installs the specified object file in the given
      directory.  The mode, owner, and group, of the destination file can be
      specified on the command line.  If this data is omitted, two results
      are possible:

        +  If you have administrative permissions (that is, your numerical
           ID is less than 100), the following defaults are provided:

                mode      0555
                owner     bin
                group     bin

        +  If you do not have administrative permissions, the default mode,
           owner, and group of the destination file are the same as yours.

      The -o option forces cpset to move object to OLDobject in the
      destination directory before installing the new object.

      cpset reads the /etc/src/destinations file to determine the final
      destination of the file to be installed.  The destinations file
      contains pairs of path names separated by spaces or tabs.  The first
      name is the "official" destination (for example: /usr/bin/echo).  The
      second name is the new destination.  If echo is moved from /usr/bin to
      /usr/local/bin, the entry in destinations would be:

           /usr/bin/echo  /usr/local/bin/echo

      When the actual installation happens, cpset verifies that the "old"
      pathname does not exist.  If a file exists at that location, cpset
      issues a warning and continues.

      This file does not exist on a distribution tape; it is used by sites
      to track local command movement.  The procedures used to build the
      source are responsible for defining the "official" locations of the
      source.

    Cross Generation    [Toc]    [Back]
      The environment variable ROOT is used to locate the destination file
      (in the form $ROOT/etc/src/destinations).  This is necessary in the
      cases where cross generation is being done on a production system.

 EXAMPLES    [Toc]    [Back]
      If you are an administrator, all of the following examples have the
      same effect.  They copy file echo into /usr/bin with mode, owner, and



 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003






 cpset(1M)                                                         cpset(1M)




      group set to 0555, bin, bin, respectively:

           cpset echo /usr/bin 0555 bin bin
           cpset echo /usr/bin
           cpset echo /usr/bin/echo

      If you are not an administrator, the last two examples set mode,
      owner, and group to your current values.

 SEE ALSO    [Toc]    [Back]
      chacl(1), make(1), install(1M), acl(5).


 Hewlett-Packard Company            - 2 -   HP-UX 11i Version 2: August 2003
[ Back ]
      
      
 Similar pages
Name OS Title
install IRIX install files in directories
dh_install Linux install files into package build directories
dh_installexamples Linux install example files into package build directories
dh_installmime Linux install mime files into package build directories
dh_installdebconf Linux install files used by debconf in package build directories
dh_installxaw Linux install xaw wrappers config files into package build directories
dh_installmenu Linux install debian menu files into package build directories
dh_installdocs Linux install documentation into package build directories
dh_installman Linux install man pages into package build directories
dh_installchangelogs Linux install changelogs into package build directories
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service