#!bin/bash if ! command -v screen &> /dev/null then sudo apt install screen -y exit fi screen -m -d meme-of-the-day sleep 5 screen -S meme-of-the-day -X stuff 'cd /var/www/html/meme-of-the-day-wallpaper/\n' screen -S meme-of-the-day -X stuff 'python3 save-image.py\n' screen -S meme-of-the-day -X stuff 'screen -X -S meme-of-the-day kill\n'