Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 1st July 2008, 02:47 PM
sringl Offline
Registered User
 
Join Date: Jul 2008
Posts: 2
Need to ssh to unix box

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
Reply With Quote
  #2  
Old 1st July 2008, 07:58 PM
cicatrix1 Offline
Registered User
 
Join Date: Jun 2007
Posts: 82
You can issue the command from ssh. SSH can act like "telnet" in that it provides you with a terminal, OR you can just send along a command that will be executed.

'man ssh' should show you everything you need to know.
Reply With Quote
  #3  
Old 2nd July 2008, 02:22 PM
sringl Offline
Registered User
 
Join Date: Jul 2008
Posts: 2
Success

I've been able to solve this by just using PuTTY and pLink from the windows box. Thanks for the help anyway.
Reply With Quote
Reply

Tags
box, ssh, unix

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unix vs DOS creeping death Programming & Packaging 9 2nd May 2009 03:09 PM
PHP and Unix Administration Quadcore Programming & Packaging 1 11th September 2007 06:39 PM
Any UNIX gurus here? tonyingesson Servers & Networking 1 12th January 2006 03:58 PM
Unix Links tajidinabd Linux Chat 2 4th January 2006 12:14 AM
Help me drop SCO UNIX! The_Jaymz Using Fedora 3 6th November 2005 07:09 AM


Current GMT-time: 09:59 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat