Created
          January 4, 2023 16:26 
        
      - 
      
- 
        Save SuriyaRuk/f78dff8dcca811c12a59f23969caaa0e to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #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