neurobin / shc

Shell script compiler

Home Page:https://neurobin.org/projects/softwares/unix/shc/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pollution of ps / top

nyxaria opened this issue · comments

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