If you want to get the path information appended to your script URL, you can use the PATH_INFO CGI variable. Consider the following CGI script: #!/bin/bash echo “Content-Type: text/plain” echo echo $PATH_INFO all this script does it output the PATH_INFO. This script is available at http://swamp.homelinux.net/cgi-bin/pathinfo. If you click on the link, you will see [...]
To automatically register with the load balancer when my EC2 node starts up, I placed the following script in /etc/init.d/registerlb: #!/bin/bash # # registerlb Startup script for registering and deregistering with the load balancer # # chkconfig: – 90 10 # description: Script for registring and deregistering with load balancer LB_REGISTER_URL=http://wslb-p.webappwishlist.com:8080/pound/subscribe LB_UNREGISTER_URL=http://wslb-p.webappwishlist.com:8080/pound/unsubscribe LB_STATUS_URL=http://wslb.webappwishlist.com:8080/pound/list PRIVATE_IP=`ip -4 [...]
If you’re using OpenSSH to access EC2, you can tell ssh to use your ec2 public key instead of specifying the public key with the -i option when you connect to one of your ec2 instances. To do this, create or modify your ~/.ssh/config file and add: host *.amazonaws.com IdentityFile PATH_TO_YOUR_AMAZON_EC2_KEY_PAIR Unlike Putty, you don’t [...]
I’m supposed to regularly blog for my CS 462 class at BYU. In all honesty, I signed up for the class because it looked easy and I wanted an easy class so that I would have more time to work on my thesis. The FAQ for the class states that it’s a hard class and [...]
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Mar | ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | ||||