pythoncode-tutorials icon indicating copy to clipboard operation
pythoncode-tutorials copied to clipboard

No output in a Windows 10 VM on host Ubuntu

Open nyck33 opened this issue 3 years ago • 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> 

nyck33 avatar Dec 07 '22 04:12 nyck33

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

nyck33 avatar Dec 07 '22 08:12 nyck33

Hey, do you have Python 3 installed? See this: https://stackoverflow.com/questions/64801225/python-or-python3-what-is-the-difference

suivalf avatar Feb 11 '23 19:02 suivalf