-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 At the beginning of the month, there was a discussion on killing an application in a script. One of the solutions given was the command for i in 'pidof spamd'; do kill $i; done Note: I know about killall, this is a different question. I thought it might be useful to be able to get the pid of an application into a variable, so I started experimenting with this as follows: for i in 'pidof spamd'; do echo $i; done The problem is that this solution doesn't work. $i will be 'pidof spamd', it does not contain the pid of spamd. Question: is there a way to get the pid into a variable, or was this simply a good idea that doesn't work? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFA1hetjeziQOokQnARAtAeAKCFIPpLt45dDogKF3CT6ksp+kw0HwCdHRHG XUYXatG/oUEiDl6U3GzTBBM= =h8X/ -----END PGP SIGNATURE-----