Module posix
Functions
euidaccess (file, mode) | Check permissions like access , but for euid. |
system (file, ...) | Run a program like os.system , but without a shell. |
Functions
- euidaccess (file, mode)
-
Check permissions like
access
, but for euid. Based on the glibc function of the same name. Does not always check for read-only file system, text busy, etc., and does not work with ACLs &c.Parameters
- file: file to check
- mode: checks to perform (as for access)
Return value:
0 if access allowed;nil
otherwise (and errno is set) - system (file, ...)
-
Run a program like
os.system
, but without a shell.Parameters
- file: filename of program to run
- ...: arguments to the program
Return values:
- status exit code, or nil if fork or wait fails
- error message, or exit type if wait succeeds