Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementScripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old February 3rd, 2005, 09:39 AM
brittonv brittonv is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 33 brittonv User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 m 31 sec
Reputation Power: 5
Script to shutdown Linux

I run a small webserver from my house.

I have one big APC UPS that protects all my computers but manages only one (xp). On that managed computer you have the option to run a file or script at different battery levels.

I want to write a windows batch file (or VBS) for the computer to run when the battery gets down to 20% or what ever that will gracefully shutdown my linux server.

Is this possible?

Can anyone please point me in the right direction?

Vince

Reply With Quote
  #2  
Old February 6th, 2005, 01:28 AM
hpxchan hpxchan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 26 hpxchan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 37 m 21 sec
Reputation Power: 0
Send a message via AIM to hpxchan Send a message via Yahoo to hpxchan
ssh/telnet, perhaps?

Reply With Quote
  #3  
Old February 6th, 2005, 05:18 AM
brittonv brittonv is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 33 brittonv User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 m 31 sec
Reputation Power: 5
Yeah, thanks.

The problem with that was it didn't work. I tried it but there were problems scripting telnet commands and responses. There were some applications on the market to do this but I like free.

I found a way to do it using RSH. Windows rsh command works cross platform and can control a Linux server. It's not the most secure solution but it is my private network at home so security isn't much of an issue.

Thanks for your time though!!!

Vince

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > Script to shutdown Linux


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway