Hey guys...
Maybe one of you can help me on this. I've created a script that closes a specified application
the script is titled close() and is the following:
close() { kill $(ps -xc | grep -i $* | awk '{print}') ;}
I saved this file in the ~/.bashrc file. The ~/.bash_profile calls the ~/.bashrc file with
source ~/.bashrc
when i start a new session in the bash terminal everything works fine when i activate this program.... however i get an erroneous output in stderr when i close an application such as Safari.app that is the following:
bash: kill: ??: no such pid
bash: kill: S: no such pid
bash: kill: 0:02.88: no such pid
bash: kill: Safari: no such pid
Can anyone explain this?
ZBerlin
Maybe one of you can help me on this. I've created a script that closes a specified application
the script is titled close() and is the following:
close() { kill $(ps -xc | grep -i $* | awk '{print}') ;}
I saved this file in the ~/.bashrc file. The ~/.bash_profile calls the ~/.bashrc file with
source ~/.bashrc
when i start a new session in the bash terminal everything works fine when i activate this program.... however i get an erroneous output in stderr when i close an application such as Safari.app that is the following:
bash: kill: ??: no such pid
bash: kill: S: no such pid
bash: kill: 0:02.88: no such pid
bash: kill: Safari: no such pid
Can anyone explain this?
ZBerlin