Hi,
I'm very new to linux in general and am finding myself needing to work on a box in order to complete a project.
The issue is that I have a unix box in my server rack that I need to be able to shut down automatically in case of loss of power. The way it has to be shutdown is where I'm having trouble. What I need the Fedora box to do is run a script at shutdown (like windows xp will do if you open up local group policy and select a script that will run every time the box shuts down).
The script needs to be able to call up an ssh client (which I've been led to understand is a native feature in Linux) connect to the Unix box, submit the username and password, and finally issue the "Shutdown 30" command.
The biggest problem for me is that I have no idea how this script needs to be written for Linux, what filetype it should be, what language it needs to use, or how to even set up the script to run at shutdown.
I appreciate any help that can be given as I am in uncharted waters and in desperate need of a life jacket.
Thanks!
Stephen