On 5/31/20 6:22 PM, Bob Goodwin wrote:


On 2020-05-31 20:38, Samuel Sieb wrote:
On 5/31/20 5:01 PM, Bob Goodwin wrote:
I found this script in a list on my computer, ran it and found I had no way to stop it. What shuts it off?

while [ 1 <> 0 ]
do
aplay /usr/share/sounds/purple/login.wav
done

It's an infinite loop.  Repeatedly pressing CTRL-C should stop it or else killing the bash process from another terminal.
____________

Well Control C is one of the first things I try, perhaps I should have kept trying longer? When I found no remedy in my notes I was beaten and had to reboot.

You have to hit it fast enough in a row that you kill the aplay and then the bash script before it starts another one. The easier method is to just kill the bash script from another terminal. Sometimes another option is to use ^Z or kill -STOP the process to give you time to catch it.

However aplay will not work after that episode. I can see the audio signal with the pulseaudio meter bar and Thunderbird still signals received mail via aplay, but other things where I used it produce no sound in the loudspeaker. Aplay in a terminal produces no sound, so I guess the loop still runs and audio is being muted from it. Nothing I tried in PAvolume restored it, I will try anything suggested now.

If you rebooted, then the runaway script is gone and won't be affecting anything. I'm confused how you say some things can run aplay and make audio, but you can't run it directly.
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to