how to get PID without using pidof command?
Hi,
Just when I figured out how to use pidof with kill to signal a running process, I learnt that the embedded platform I am using does not support pidof and find commands. It does support other popular commands such as ps, grep, kill, ls though.
I have a shell script that gets a process's PID and sends it a signal.
kill -s testsig# $(pidof test)
Can someone help me do this without using pidof.
Thanks,
Ruchika
|