Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Processes practice ps command not working properly #274

Open
tudorcondrea opened this issue Apr 10, 2023 · 4 comments
Open

Processes practice ps command not working properly #274

tudorcondrea opened this issue Apr 10, 2023 · 4 comments

Comments

@tudorcondrea
Copy link

Hello, in the Processes subsection where we open 10 sleep processes, the ps -e -H -o pid,ppid,cmd | (head -1; grep "python3 sleepy_creator.py") and ps -e -H -o pid,ppid,cmd | (head -1; grep sleep) do not show the list of processes, however running ps -e -H is sufficient

@teodutu
Copy link
Member

teodutu commented Apr 11, 2023

Do the commands show any output? They should only show the PIDs, PPIDs and commands of the sleep processes. The point is not to view the whole process hierarchy.

@tudorcondrea
Copy link
Author

They only show the table head and no processes at all, even though they are running

@gabrielmocanu
Copy link
Contributor

@tudorcondrea

Stupid question, but did you implement the TODOs from sleepy_creator.py?

Can you try with the one in the solution directory and see if you have the same pattern?

ps -e -H -o pid,ppid,cmd | (head -1; grep "python3 sleepy_creator.py") and ps -e -H -o pid,ppid,cmd | (head -1; grep sleep) should show you only the sleep process, not all processes as ps -e -H does.

@gabrielmocanu
Copy link
Contributor

@tudorcondrea

Any updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants