VLC is running. Got the PID from pgrep vlc.
I want now to pause it manually since I would like it to run "submerged" (right now from another tty but probably as a daemon)
I tried to simply do sudo "pause" > /usr/bin/vlc/
having got the path by doing sudo ls -l /proc/<PID>/exe
.
The answer is, even running the sudo command, that the permission is denied.
For my surprise, if I enter root mode sudo bash
and just type the same command, the answer is not that the permission is denied, but rather that the "text file is busy
". I'd like to guess what text file. I thought that command (in that case) inputted data to the command input manually (apart from writing to a text file)