Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
> Have A Interesting Thought About A Program, Or already done?
GiZiM
post Aug 24 2004, 02:33 PM
Post #1


Grub-er
**

Group: Members
Posts: 31
Joined: 24-August 04
Member No.: 3,619



Well i was thinking today while watching TV it started to storm pretty good power almost went out. We know linux hates when you dont shut down correctly. I was thinking lets say we are away some place and it starts to storm like a mofo it would be nice if a program was always running that would check the weather in the area. Once the weather gets bad (User definable) linux would auto shutdown. Lets say if the weather was Thunder Storm and winds of 15mph it would shut down by its self.


--------------------
~ GiZiM ~
GiZiM.Net

Red Hat Fedore Core 2
N00B
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
Jim
post Aug 25 2004, 12:30 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,280
Joined: 19-November 03
From: University of Minnesota- TC
Member No.: 1,828



It would definitely be possible to write a bash script, but the problem you would have with that is that it would either a) have to constantly be running or B) be running on a regular time schedual.

One of the simple ways to do it would be to just shut it down remotely via SSH.

Putty, which is a free windows ssh client is just a exe file, wouldn't need to be installed. I have it on my pen drive and I can just run it off there. Plug it into any body's computer, and i can log onto my box and my mac from anywhere. Of course you need to know your ip address or have a domain name, and have access to a computer. But that might be an easier way to do it.

The best way though, is to just have a UPS because that not only alows your computer time to shutdown right, but protects if from a surge that usually comes when the power goes out.


--------------------
--Jim Lester
jim@linuxhelp.net

Distro: Gentoo
System: AMD Athlon 3000+ XP 2.166 GHz
NVIDIA nForce2 IGP Chipset
1GB 333 MHz DDR SDRAM
NVIDIA nForce2 Dual Head 64 MB Graphics

Server Distro: CentOS
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 18th October 2017 - 03:59 AM