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 an empty [...]
I didn’t have any significant difficulties with Lab 1. For the most part I thought it was fairly trivial. No offense to those who struggled. I’ve been building web applications professionally for years and I’ve been using Linux as my desktop OS exclusively for almost 5 years. The lab was still beneficial though and I [...]
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 -o addr show dev eth0 | awk ‘{print [...]
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 [...]