Execute multiple commands in one line through ssh starting with pkill -f
3
votes
1
answer
204
views
Noticed something strange while working with a raspberry pi.
Using pkill with no options allows me to run other commands afterwards in the same line, but if I use the option -f, then subsequent commands are ignored. Does anyone know why?
$ ssh pi@192.168.1.1 "pkill -f blablabla ; echo yeaaaah"
pi@192.168.1.1's password:
$ ssh pi@192.168.1.1 "pkill blablabla ; echo yeaaaah"
pi@192.168.1.1's password:
yeaaaah
It makes no difference whether process blablabla exists or not.
Asked by Marcelo
(31 rep)
Jan 13, 2023, 06:44 PM
Last activity: Jan 13, 2023, 09:30 PM
Last activity: Jan 13, 2023, 09:30 PM