16 lines
		
	
	
		
			244 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			244 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
#./suspend-at-time 0:00
 | 
						|
 | 
						|
RUNAT="$1"
 | 
						|
 | 
						|
while [ 1 ]
 | 
						|
do
 | 
						|
    DATE=`/bin/date +%H:%M`
 | 
						|
    if [ $DATE. = $RUNAT. ]
 | 
						|
    then
 | 
						|
        sudo systemctl suspend
 | 
						|
        echo ""DONE"      at     "$(date)"" 
 | 
						|
        pkill suspend-at-time
 | 
						|
	fi
 | 
						|
done
 |