-
Snooze to Save Money
Cloud instances bill by the hour (or the minute) – and right now you’re burning money. Use
snoozeto auto-shutdown your instances in 45 minutes.Add
snoozeto your~/.bashrcalias snooze='sudo shutdown -c ; sudo shutdown -h +45 &' snoozeWhen you want to extend your session, run
snoozeBroadcast message from ec2-user@ip-172-31-43-250 (/dev/pts/1) at 2:50 ... The system is going down for halt in 45 minutes!How does this work?
shutdown -ccancels the shutdown, andshutdown -h +45schedules a shutdown in 45min.