Most Unix/Linux systems come with python pre-installed:
$ python -V
| #!/usr/bin/env python | |
| import sys, paramiko | |
| if len(sys.argv) < 5: | |
| print "args missing" | |
| sys.exit(1) | |
| hostname = sys.argv[1] | |
| password = sys.argv[2] |
Typing vagrant from the command line will display a list of all available commands.
Be sure that you are in the same directory as the Vagrantfile when running these commands!
vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)vagrant status -- outputs status of the vagrant machinevagrant halt -- stops the vagrant machinevagrant reload -- restarts vagrant machine, loads new Vagrantfile configurationvagrant provision -- forces reprovisioning of the vagrant machine| #!/usr/bin/env bash | |
| # bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2011-08-25 | |
| # | |
| # _______________| httpstatus : get HTTP status code | |
| # | |
| # Usage: httpstatus URL [timeout] [--code or --status] [see 4.] | |
| # ^message with code (default) | |
| # ^code (numeric only) | |
| # ^in secs (default: 3) | |
| # ^URL without "http://" prefix works fine. |