0

When running a kill command by its name in a Linux RT ARM version:

kill -9 'pidof program'

I have the error

kill: invalid number 'pidof myprogram'

what is wrong in here? how can i know which version of kill?

Brethlosze
  • 1,452
  • 17
  • 36

2 Answers2

2

You are using the wrong quote ', use ` instead.

kill -9 `pidof program`
Nisse Engström
  • 4,636
  • 22
  • 26
  • 40
hailinzeng
  • 928
  • 8
  • 24
1

or you can use command 'pkill'

pkill program

pkill -9 program
Tony Damon
  • 76
  • 4