Run program from a shell script but behave as one process only? The problem is most probably in the fact that although I created a new process it uses both names, the original one and a newly defined one. PS output: 1000 6151 0.0 0.0 13720 944 pts/2 R+ 10:49 0:00 grep --color=auto firefox | 10006153 0.0 0.0 13716 940 pts/2 S+ 10:49 0:00 grep --color=auto gedit