Site Tools


chmod

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

chmod [2007/03/02 02:32] (current)
Line 1: Line 1:
 +# $EPIC: chmod.txt,v 1.3 2007/03/02 02:32:04 jnelson Exp $
 +======Synopsis:​======
 +$__chmod__(%%<​file>​%% <​mode>​)
 +
 +======Technical:​======
 +The %%<​file>​%% argument is a [[what is a word|dword]] which is different from
 +most functions.
 +
 +This function provides an interface to the Unix system call chmod(2). ​ It
 +applies the given mode to the file specified. ​ Refer to your Unix system
 +manual for more information (usually "man 2 chmod"​). ​ The mode must be in
 +numeric format.
 +
 +======Practical:​======
 +This function is used to change the access permissions on a given file.
 +A discussion of Unix file permissions is beyond the scope of this
 +document; refer to your system'​s manual page for chmod(1) or chmod(2).
 +
 +======Returns:​======
 +<​file>​
 +-1   error
 +0    permissions changed successfully
 +</​file>​
  
chmod.txt ยท Last modified: 2007/03/02 02:32 (external edit)