Chmod
(since EVL 2.3)
Change file mode bits.
Each <file>
is of the form
[<scheme>://][[<user>@@]<host>[:<port>]]<path> ...
For scheme ‘hdfs://’ it calls function ‘evl_hdfs_chmod’, which is by default ‘hdfs dfs -chmod’.
For scheme ‘sftp://’ it calls function ‘evl_sftp_chmod’.
Synopsis
Chmod ( <mode>[,<mode>]... | <octal-mode> ) <file>... [-R|--recursive] evl chmod ( <mode>[,<mode>]... | <octal-mode> ) <file>... [-R|--recursive] [--verbose] evl chmod ( --help | --usage | --version )
Options
- -R, --recursive
-
change files and directories recursively
Standard options:
- --help
-
print this help and exit
- --usage
-
print short usage information and exit
- -v, --verbose
-
print to stderr info/debug messages of the component
- --version
-
print version and exit
Examples
- Simple usage examples:
Chmod hdfs:///some/path/ Chmod /some/local/machine/path/
- Depends on environment, e.g. ‘PROD’/‘TEST’/‘DEV’, might be useful to be used this
way:
# on DEV: OUTPUT_DIR=/data/output # on PROD: OUTPUT_DIR=hdfs:///data/output
and then in ‘evs’ file:
Chmod -p "$OUTPUT_DIR"