# Why processes report is not generated?

If you're experiencing issues with generating the processes status report using the yc command on Linux or macOS, it might be due to insufficient permissions. This section explains the possible reason for the failure and provides a solution.

# Reason

The ps command used in the backend requires administrative privileges to access system information and retrieve process status data. By default, regular users do not have the necessary permissions to execute this command successfully.

# Solution

To generate the process status output using the yc command, you can use the sudo command to acquire the required elevated privileges. Follow the steps below:

  1. Open a terminal or command prompt.
  2. Run the following command, replacing <PID> with the actual process ID and /path/to/config.yaml with the appropriate configuration file:
sudo ./yc -c /path/to/config.yaml -p <PID>
1
  1. Enter your password when prompted.

Note that your user account must have administrative rights to use sudo.

By using sudo, you grant the yc command the necessary privileges to retrieve processes information, allowing the output generation to proceed successfully.