Table of Contents
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
, in the range:"?(/.*)
Example:
body common control
{
bundlesequence => { "example" };
}
bundle agent example
{
classes:
"yes" expression => isexecutable("/bin/ls");
reports:
yes::
"/bin/ls is an executable file";
}
Output:
R: /bin/ls is an executable file
History: Was introduced in version 3.1.0b1,Nova 2.0.0b1 (2010)