I am running several Raspberry Pi 4 on Bookworm. On these, I have a bash file as follows:
sudo apt -y update read -t 600 -p "Pausing 10 minutes between Update and Upgrade" sudo apt -y upgrade read -t 600 -p "Pausing 10 minutes between Upgrade and AutoRemove" sudo apt -y autoremove Sometimes I get the below screen:
I also run this as a cron job (once a quarter) that calls the above script, but it fails when run via the cron. How can I recognize that this GUI prompt is up and input the right answer?
Important Note: This doesn't happen always, so I want it to recognize when it happens and only then provide the correct input.
