x4nth055/pythoncode-tutorials

No output in a Windows 10 VM on host Ubuntu

nyck33 opened this issue · 2 comments

(tasklistlog) PS C:\Users\nobut\Documents\keyLogTasksList> python3 process_monitor.py --sort-by create_time -n 10

Loading personal and system profiles took 2978ms.
(base) PS C:\Users\nobut\Documents\keyLogTasksList> conda activate tasklistlog
(tasklistlog) PS C:\Users\nobut\Documents\keyLogTasksList> python3 process_monitor.py --sort-by create_time -n 10
(tasklistlog) PS C:\Users\nobut\Documents\keyLogTasksList> python3 process_monitor.py --columns name,cpu_usage,memory_usage,status -n 20 --sort-by memory_usage --descending
(tasklistlog) PS C:\Users\nobut\Documents\keyLogTasksList> python3 process_monitor.py --help
(tasklistlog) PS C:\Users\nobut\Documents\keyLogTasksList> 

It worked with python not python3. But when I try option -c username all I get is N/A.

Why does this happen when I can run in command prompt tasklist /fi "username eq nyck33" /V and get the username? Ie. there should not be any restrictions.

Please see here: https://www.reddit.com/r/learnpython/comments/zevvki/subprocess_get_username_name_of_process_time/?utm_source=share&utm_medium=web2x&context=3