why this command can't work?

kill 'cat /home/bro/bro.pid';

when i run this command,it says:
kill:cat /home/bro/bro.pid no such pid

what should i do?!

about bro.pid:
./bro -i eth0 mt @;
echo $!<//home/bro/bro.pid;

kill 'cat /home/bro/bro.pid';

when i run this command,it says:
kill:cat /home/bro/bro.pid no such pid

There are 2 types of single quotes in Unix/Linux
the single quote aka '
and the back quote aka `

what should i do?!

use back quotes instead of single quotes.

look at the difference between the two in your shell.

echo 'cat /home/bro/bro.pid';
echo `cat /home/bro/bro.pid`;

marc

Hi,

The problem may be that the quotation marks should be ` rather than ',
i.e. you should use:

kill `cat /home/bro/bro.pid`;

rather than

kill 'cat /home/bro/bro.pid';

when i run this command,it says:
kill:cat /home/bro/bro.pid no such pid

Does this solve the problem?

Ruoming

yes , it now works correctly,thanks for your help !

then i have another question:)
i want to add a GUI to my bro with java,so i can start,close,config bro in
windows conveniently.
the problem is, how can i run a shell command in java program?

thanks again!