diff options
author | nicolargo <nicolas@nicolargo.com> | 2024-04-05 19:39:12 +0200 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2024-04-05 19:39:12 +0200 |
commit | 6fc0814a320e4deb8299da635fb862518a3053a2 (patch) | |
tree | 303e2e4505af86b372449be41a91469106f9eae9 /docs/aoa | |
parent | 4a5dfe7584610d1f263959b9c8a29d73c25f3fa6 (diff) |
Add optino to set export process filter from the command lineissue794
Diffstat (limited to 'docs/aoa')
-rw-r--r-- | docs/aoa/ps.rst | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/docs/aoa/ps.rst b/docs/aoa/ps.rst index f03c5f9f..fe788cf3 100644 --- a/docs/aoa/ps.rst +++ b/docs/aoa/ps.rst @@ -206,11 +206,11 @@ Export process Glances version 4 introduces a new feature to export specifics processes. In order to use this feature, you need to use the export option in the processlist section of the Glances configuration -file. +file or the --export-process-filter option in the command line. The export option is one of the following: - a comma separated list of process names or regular expressions -- a single filter (see above) +- a single Glances filter (see above) Example number one, export all processes with the name 'python': @@ -219,6 +219,8 @@ Example number one, export all processes with the name 'python': [processlist] export=.*python.* +Note: or the --export-process-filter ".*python.*" option in the command line. + Example number two, export all processes with the name 'python' or 'bash': .. code-block:: ini @@ -226,6 +228,8 @@ Example number two, export all processes with the name 'python' or 'bash': [processlist] export=.*python.*,.*bash.* +Note: or the --export-process-filter ".*python.*,.*bash.*" option in the command line. + Example number three, export all processes belong to the user 'nicolargo': .. code-block:: ini @@ -233,6 +237,8 @@ Example number three, export all processes belong to the user 'nicolargo': [processlist] export=username:nicolargo +Note: or the --export-process-filter "username:nicolargo" option in the command line. + The output of the export use the PID as the key (for example if you want to export firefox process to a CSV file): @@ -243,6 +249,8 @@ Configuration file (glances.conf): [processlist] export=.*firefox.* +Note: or the --export-process-filter ".*firefox.*" option in the command line. + Command line example: .. code-block:: bash |