Skip to content

Instantly share code, notes, and snippets.

@luckylittle
Created June 20, 2024 01:17
Show Gist options
  • Save luckylittle/145ae1c2b8a9f43f07c3a9e81231628f to your computer and use it in GitHub Desktop.
Save luckylittle/145ae1c2b8a9f43f07c3a9e81231628f to your computer and use it in GitHub Desktop.
Gracefully shut down the Virtualbox machine at a specific time
#!/bin/zsh
at 16:58 <<END
/usr/lib/virtualbox/VBoxManage controlvm "{10a78d46-53a7-4483-a602-183436c6bcc2}" acpipowerbutton
noti -t "at_1658_close_vbox_machine.sh" -m "Windows10Ent has been shut down\!" -o
END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment