Hello Edgard. You can have a web browser, put a cgi file with bash, and run sudo poweroff.
http://www.yolinux.com/TUTORIALS/LinuxTutorialCgiShellScript.html Does that helps? Alvaro On Thu, Jan 14, 2016 at 2:52 AM, Edgar Oliveira <[email protected]> wrote: > Hello, > > Any idea to create an file for when I accessed through browser it execute > the code to shutdown my virtual machine? > E.G. I accessed the IP 192.168.1.50, corresponding the VM, and when access > the file something.php and inside this file execute the code which the same > execute via terminal "sudo shutdown -h 1". > > Which language do you advice to build this option? The vagrant was any > option for this? > > Thanks > > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/mitchellh/vagrant/issues > IRC: #vagrant on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Vagrant" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/vagrant-up/0dbcfcbe-7e58-41ca-9dbf-84d665eff2eb%40googlegroups.com > <https://groups.google.com/d/msgid/vagrant-up/0dbcfcbe-7e58-41ca-9dbf-84d665eff2eb%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/vagrant/issues IRC: #vagrant on Freenode --- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0ex09gB7p%3Dye2fDazdP-g8MsKq3kpZWfcUp8aYoQGeAYGg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
