I would like to know if there is a way to send a message to a running process on linux ?
For example, is it possible to programmatically \"pause\" a video launched w
kill -s STOP $(pidof mpv) and kill -s CONT $(pidof mpv)
kill -s STOP $(pidof mpv)
kill -s CONT $(pidof mpv)
or better :
xdotool key --window "$(xdotool search --class mpv)" p
The key "P", is set by default to pause the video.