You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nethog can be set on specific processes which is great.
With -P a processID to monitor can be specified.
Is there a way to supply a list of processIDs to monitor?
Example cfommand: sudo nethogs -P pgrep rclone -v 3
When one rclone process is running, the command works well.
But when there is more than one rclone process it fails, because pgrep rclone returns several pIDs.
Is there a way to send a list if pIDs to -P?
The text was updated successfully, but these errors were encountered:
i made a small script for several processes, here it is rclone, change this to the app/process you want. note the -v 3 option switches to network usage - total in out traffic for this process. if you want momentar bandwidth usage check the -v options.
#!/usr/bin/bash
PROC=""
for i in `pgrep rclone` ; do
PROC="$PROC -P $i"
done
# echo $PROC
sudo nethogs $PROC -v 3
nethog can be set on specific processes which is great.
With -P a processID to monitor can be specified.
Is there a way to supply a list of processIDs to monitor?
Example cfommand: sudo nethogs -P
pgrep rclone
-v 3When one rclone process is running, the command works well.
But when there is more than one rclone process it fails, because pgrep rclone returns several pIDs.
Is there a way to send a list if pIDs to -P?
The text was updated successfully, but these errors were encountered: