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

pollution of ps / top #166

Open
nyxaria opened this issue Feb 8, 2024 · 1 comment
Open

pollution of ps / top #166

nyxaria opened this issue Feb 8, 2024 · 1 comment

Comments

@nyxaria
Copy link

nyxaria commented Feb 8, 2024

Hi, when I run the following program (sleep.sh)

#!/bin/bash
sleep 1
sleep 1
sleep 1
sleep 1
sleep 1

sleep 1
echo "done"

(compiled using shc -f sleep.sh && mv sleep.sh.x sleep && ./sleep)

I can see the contents of the program when I run ps -ax | grep sleep, alongside a LOT of whitespace:

image

Is there a way to avoid this?

I would ideally only want to see ./sleep in ps output if possible

@chenzhch
Copy link

chenzhch commented Jun 4, 2024

Give it a try shellc. Can solve your problem

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

2 participants