Ns chmod

From AOLserver Wiki
Revision as of 23:38, 14 June 2004 by WikiSysop (talk | contribs) (imported from WiKit id 531)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Man page: http://aolserver.com/docs/tcl/ns_chmod.html


NAME

ns_chmod - Change a file's access permissions

SYNOPSIS

ns_chmod filename mode

DESCRIPTION

This command changes the permissions on a file or directory specified by filename to mode, in the same manner as the Unix chmod(1) command-line utility.
This is a legacy command from when Tcl did not have this functionality. It is now recommended you use

Tcl's file attributes -permissions command instead. In other words, this:

   ns_chmod /tmp/ns_chmod 0755

is equivalent to:

   file attributes /tmp/ns_chmod -permissions 0755

EXAMPLES

   # can't think of a non-trivial example here

SEE ALSO

ns_link, ns_mkdir, ns_rename, ns_rmdir, ns_symlink

Category Documentation - Category Core Tcl API