pollution of ps / top
nyxaria opened this issue · comments
George Hartt commented
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:
Is there a way to avoid this?
I would ideally only want to see ./sleep
in ps
output if possible