2022-07-06 07:34:05 +00:00
|
|
|
#!bin/bash
|
|
|
|
|
|
|
|
if ! command -v screen &> /dev/null
|
|
|
|
then
|
|
|
|
sudo apt install screen -y
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2022-07-06 08:20:40 +00:00
|
|
|
screen -m -d meme-of-the-day
|
2022-07-06 07:34:05 +00:00
|
|
|
sleep 5
|
2022-07-07 06:09:01 +00:00
|
|
|
screen -S meme-of-the-day -X stuff 'cd /var/www/html/meme-of-the-day-wallpaper/\n'
|
2022-07-07 06:13:44 +00:00
|
|
|
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'
|