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,533
  • 1
  • 22
  • 41

2 Answers2

2

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

kill -9 `pidof program`
Nisse Engström
  • 4,738
  • 23
  • 27
  • 42
hailinzeng
  • 966
  • 9
  • 24
1

or you can use command 'pkill'

pkill program

pkill -9 program
Tony Damon
  • 76
  • 4