Skip to content

Instantly share code, notes, and snippets.

@SuriyaRuk
Created January 4, 2023 16:26
Show Gist options
  • Save SuriyaRuk/f78dff8dcca811c12a59f23969caaa0e to your computer and use it in GitHub Desktop.
Save SuriyaRuk/f78dff8dcca811c12a59f23969caaa0e to your computer and use it in GitHub Desktop.
#datainhost=$(du -hsb /data/do-3/root | awk '{print $1}')
#echo $datainhost
#x=1
#while [ $datainhost -lt 115598085 ]
while [ $(pidof scp) ]
do
#datainhost=$(du -hsb /data/do-3/root | awk '{print $1}')
echo "root "$(pidof scp)" not finish"
sleep 60s
done
echo "fish"
curl -X POST -H "Content-Type: application/json" -d "{\"chat_id\": \"-5xxxxxx4\", \"text\": \"do3 data copy finished\", \"disable_notification\": false}" https://api.telegram.org/bot58xxxxxlxvk/sendMessage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment