A small shell script writes to a terminal, in while-loop, with echo
.
If I close the terminal, it re-attaches to the new terminal I start - usually /dev/pts/0
but it has also attached to /dev/pts/10
.
It survives re-boot. I can't find what process it is:
ps -elf | awk '{if ($5 == 1){print $4" "$5" "$15}}'
shows no shells running apart from the terminal I am on, and the pts
it is writing to. If I kill those, and start again, it continues to write, but I see no shell.
The script sleeps for a second. I've tried looking for sleep
in ps
, but it never seems to appear.
How can I find and kill it? I'm running Ubuntu 17.04 btw.
~/.bashrc
, ~/.bash_profile,
~/.profile` etc.)