#!/bin/bash -r for (( i=0; i<3; i++ )); do systemctl suspend echo $$ suspending in 180 seconds sleep 180 done wall -n spend: $$ shutdown in 180 seconds shutdown