IMPORTANT ANNOUNCEMENT: On May 6, 2024, Carbon Black User eXchange (UeX) and Case Management will move to a new platform!
The Community will be in read-only mode starting April 19th, 7:00 AM PDT. Check out the blog post!
You will still be able to use the case portal to create and interact with your support cases until the transition, view more information here!

PSC: Will filename be shown if command uses IO redirection? (Mac)

PSC: Will filename be shown if command uses IO redirection? (Mac)

Environment

  • PSC Console: All Versions
    • CB Defense
    • CB ThreatHunter
  • PSC Sensor: All Versions
  • Apple macOS: All Supported Versions

Question

If a command is run in the terminal which redirects output to a file, will the name of the file be shown in the Carbon Black Cloud Console?
command argument >> file_redirect

Answer

No. The output filename will not be recorded.

Additional Notes

This is a limitation of the operating system. When a command is run using IO redirection, the output file redirection is handled by zsh/sh/bash prior to the process creation and effectively removed from the command arguments. The subsequent call to execvp does not understand what file redirections are and cannot persist in the argument list accordingly. 

Related Content


Was this article helpful? Yes No
100% helpful (1/1)
Article Information
Author:
Creation Date:
‎12-11-2019
Views:
249
Contributors