User command limitation
If special characters or spaces are required in the user command and its arguments, you must use a wrapper script, or the command fails.
For example, consider the following user command:
ls -ef | grep 'test'
This command contains quotes in the command arguments. Therefore, to use this command, you have to write a shell script such as test.sh, that can invoke ls -ef | grep 'test'. The test.sh script appears in the following form:
ls -ef | grep 'test'
Consider the following when you run a command by using a shell script:
- You must register the user command to run the following command: test.sh.
- Spaces are not supported in the command name.
- Some system commands that are dependent on the shell might not appear correctly, for example, clear.
- You must manually copy the files to the appropriate location on the agent computer on which you want to run the command (if it does not already exist).
- For each user command registered, you must specify an absolute path.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*