Quantcast
Channel: Check if a screen is active and then display countdown - Ask Ubuntu
Browsing all 2 articles
Browse latest View live

Answer by madneon for Check if a screen is active and then display countdown

Do you want to do some countdown, while screen is active? If so, you could change your if and for with while loop, like this: while (screen -list backup|grep -q backup); do # delay sleep 1 # display...

View Article



Check if a screen is active and then display countdown

#!/bin/bash DATE=$(date +"%m-%d-%Y") Backup_from="/home/mc/server/prison/" Backup_to="/home/mc/backups/PRISON-$DATE.tar" echo "Starting backup of $Backup_from to $Backup_to" screen -dmS backup tar...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images