isexecutable
Table of contents
Prototype: isexecutable(filename)
Return type: boolean
Description: Returns whether the named object filename
has execution rights for the current user.
Arguments:
filename
:string
- File object name - in the range:"?(/.*)
Example:
code
body common control
{
bundlesequence => { "example" };
}
bundle agent example
{
classes:
"yes" expression => isexecutable("/bin/ls");
reports:
yes::
"/bin/ls is an executable file";
}
Output:
code
R: /bin/ls is an executable file
History: Was introduced in version 3.1.0b1,Nova 2.0.0b1 (2010)