Views:
504
Votes: 0
✅ Solution
Tags:
command-line
bash
sound
scripts
Link:
🔍 See Original Answer on Ask Ubuntu ⧉ 🔗
URL:
https://askubuntu.com/q/1413743
Title:
How to kill a program after it's executed from a script?
ID:
/2022/06/12/How-to-kill-a-program-after-it_s-executed-from-a-script_
Created:
June 12, 2022
Upload:
September 15, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
To kill all instances of ffplay
, replace:
kill ${PID}
with:
pkill ffplay
This will make your life much simpler.