All pastes #939468 Raw Edit

Test with /bin/bash heading

public text v1 · immutable
·published 2008-03-12 09:52 UTC
rendered paste body
ixti@cervantes:~$ cat test.sh
#!/bin/bash

ps aux | grep test.sh | grep -v 'grep test.sh' | while read PID_LINE; do
  echo $PID_LINE
done

ixti@cervantes:~$ ./test.sh
ixti 12518 0.0 0.4 4084 1136 pts/5 R+ 13:51 0:00 /bin/bash ./test.sh
ixti 12520 0.0 0.0 4084 180 pts/5 R+ 13:51 0:00 /bin/bash ./test.sh