I have a script like this:
tail -f /path/to/file.txt
tail -f /path/to/other/file
How can I stop tail -f without stopping whole script?
In another shell you can write
the output should be similar to this:
PID of the process in this case is 9845 You can stop (kill) it with
if it doesn't function you can use kill -9 9845.
Note: if you kill the process of 1st "tail -f" line of the script, the script will proceed till the second "tail -f" (tail -f /path/to/other/file) and stops again there.