I've got an amazon EC2 instance, which starts up, runs a script, and when the script finishes, I want to shut it down.
I tried chmod g+s to give super user privileges on a .sh script which called shutdown, but that didnt work. Is there another way?
Or should I use the amazon API instead?