A: Usually, there is a serial port on the back of a UPS that can be used to connect it to just about any computer. Sometimes these connections are null-modem, sometimes they're not. The UPS sends information along the serial line as it goes. If you can decode which pins contain which information, how the information is formatted and figure out what it wants to hear from the computer side, you're all set.
Here is a skeleton script that outlines a very simple UPS interface provided by Joe Moss, joe_AT_morton.rain.com. Definitely check this out as a starting point, but don't expect it to do anything meaningful without some work.
#! /bin/sh # Shut down system in case of extended power failure # This should be the serial port to which the UPS is connected # This port must be set to block on open until the DCD line # is asserted - many UNIX systems have this determined by # the minor device number, if not, see if there is some way # to enable this behavior on your system PORT=/dev/ttya # Ok, this should block until there is a power failure : > $PORT # If we reach this point, we've lost power wall << EOF The sky is falling!! The sky is falling!! EOF # call shutdown (or init or whatever) exec shutdown
for your philippine electrical concerns...needs...installation...orders...safeelectrical2013@gmail.comMETRO MANILA PHILIPPINESSAFE ELECTRICAL SUPPLY AND SERVICESSAFE ELECTRICAL SUPPLY AND SERVICESSAFE ELECTRICAL SUPPLY AND SERVICESSAFE ELECTRICAL SUPPLY AND SERVICESSAFE ELECTRICAL SUPPLY AND SERVICESSAFE ELECTRICAL SUPPLY AND SERVICESSAFE ELECTRICAL SUPPLY AND SERVICESSAFE ELECTRICAL SUPPLY AND SERVICESCONTROL CABLE, XLPE CABLE, ROYAL CORD, POWER CABLE SUPPLIER IN METRO MANILACONTROL CABLE, XLPE CABLE, ROYAL CORD, POWER CABLE SUPPLIER IN QUEZON CITYCONTROL CABLE, XLPE CABLE, ROYAL CORD, POWER CABLE SUPPLIER IN THE PHILIPPINESELECTRICAL WIRE AND CABLE SUPPLIER IN MAKATI PHILIPPINESELECTRICAL WIRE AND CABLE SUPPLIER IN TAGUIG PHILIPPINESELECTRICAL WIRE AND CABLE SUPPLIER IN MAKATI PHILIPPINESELECTRICAL WIRE AND CABLE SUPPLIER IN GLOBAL CITY PHILIPPINESELECTRICAL WIRE AND CABLE SUPPLIER IN MAKATI PHILIPPINESELECTRICAL WIRE AND CABLE SUPPLIER IN TAGUIG PHILIPPINESELECTRICAL WIRE AND CABLE SUPPLIER IN ALABANG PHILIPPINESELECTRICAL WIRE AND CABLE SUPPLIER IN GLOBAL CITY PHILIPPINESPHASE CONVERTER SUPPLIER IN MAKATI PHILIPPINESPHASE CONVERTER SUPPLIER SUPPLIER IN TAGUIG PHILIPPINESPHASE CONVERTER SUPPLIER SUPPLIER IN MAKATI PHILIPPINESPHASE CONVERTER SUPPLIER SUPPLIER IN GLOBAL CITY PHILIPPINESPHASE CONVERTER SUPPLIER SUPPLIER IN MAKATI PHILIPPINESPHASE CONVERTER SUPPLIER SUPPLIER IN TAGUIG PHILIPPINESPHASE CONVERTER SUPPLIER SUPPLIER IN ALABANG PHILIPPINESPHASE CONVERTER SUPPLIER SUPPLIER IN GLOBAL CITY PHILIPPINESMOTOR AVR UPS INVERTER TRANSFORMER SUPPLIER IN METRO MANILAMOTOR AVR UPS INVERTER TRANSFORMER IN QUEZON CITYMOTOR AVR UPS INVERTER TRANSFORMER SUPPLIER IN MAKATI PHILIPPINESMOTOR AVR UPS INVERTER TRANSFORMER SUPPLIER IN TAGUIG PHILIPPINESMOTOR AVR UPS INVERTER TRANSFORMER SUPPLIER IN MAKATI PHILIPPINESMOTOR AVR UPS INVERTER TRANSFORMER SUPPLIER IN GLOBAL CITY PHILIPPINESMOTOR AVR UPS INVERTER TRANSFORMER SUPPLIER IN MAKATI PHILIPPINESMOTOR AVR UPS INVERTER TRANSFORMER SUPPLIER IN TAGUIG PHILIPPINESMOTOR AVR UPS INVERTER TRANSFORMER SUPPLIER IN ALABANG PHILIPPINESMOTOR AVR UPS INVERTER TRANSFORMER SUPPLIER IN GLOBAL CITY PHILIPPINESWIRE AND CABLE SUPPLIER IN LUZONWIRE AND CABLE SUPPLIER IN VISAYAWIRE AND CABLE SUPPLIER IN SUBICWIRE AND CABLE SUPPLIER IN CLARKWIRE AND CABLE SUPPLIER IN THE PHILIPPINESWIRE AND CABLE SUPPLIER IN THE PHILIPPINESELECTRICAL SUPPLIER IN METRO MANILAELECTRICAL SUPPLIER IN QUEZON CITYELECTRICAL SUPPLIER IN LUZONELECTRICAL SUPPLIER IN VISAYAELECTRICAL SUPPLIER IN SUBICELECTRICAL SUPPLIER IN CLARKELECTRICAL SUPPLIER IN PHILIPPINE INDUSTRIAL PARKELECTRICAL SUPPLIER IN PHILIPPINE ECONOMIC ZONEELECTRICAL SUPPLIER FOR PHILIPPINE FOREIGNERSELECTRICAL SUPPLIER FOR PHILIPPINE PROVINCESELECTRICAL SUPPLIER IN PHILIPPINES BATANESELECTRICAL SUPPLIER IN PHILIPPINES LAOAGELECTRICAL SUPPLIER IN PHILIPPINES CLARKELECTRICAL SUPPLIER IN PHILIPPINES SUBICELECTRICAL SUPPLIER IN PHILIPPINES MANILAELECTRICAL SUPPLIER IN PHILIPPINES BATANGASELECTRICAL SUPPLIER IN PHILIPPINES LEGASPIELECTRICAL SUPPLIER IN PHILIPPINES BORACAYELECTRICAL SUPPLIER IN PHILIPPINES PALAWANELECTRICAL SUPPLIER IN PHILIPPINES PUERTO PRINCESAELECTRICAL SUPPLIER IN PHILIPPINES ILOILOELECTRICAL SUPPLIER IN PHILIPPINES BICOLELECTRICAL SUPPLIER IN PHILIPPINES CEBUELECTRICAL SUPPLIER IN PHILIPPINES BOHOLELECTRICAL SUPPLIER IN PHILIPPINES SURIGAOELECTRICAL SUPPLIER IN PHILIPPINES DUMAGUETEELECTRICAL SUPPLIER IN PHILIPPINES BACOLODELECTRICAL SUPPLIER IN PHILIPPINES CAGAYAN DE OROELECTRICAL SUPPLIER IN PHILIPPINES SURIGAOELECTRICAL SUPPLIER IN PHILIPPINES BUKIDNONELECTRICAL SUPPLIER IN PHILIPPINES ILIGANELECTRICAL SUPPLIER IN PHILIPPINES ZAMBOANGAELECTRICAL SUPPLIER IN PHILIPPINES BUTUANELECTRICAL SUPPLIER IN PHILIPPINES GENERAL SANTOSELECTRICAL SUPPLIER IN PHILIPPINES ZAMBOANGAELECTRICAL SUPPLIER IN PHILIPPINES DAVAOELECTRICAL SUPPLIER IN MAKATI PHILIPPINESELECTRICAL SUPPLIER IN MAKATI PHILIPPINESELECTRICAL SUPPLIER IN TAGUIG PHILIPPINESELECTRICAL SUPPLIER IN TAGUIG PHILIPPINESELECTRICAL SUPPLIER IN METRO MANILA PHILIPPINESELECTRICAL SUPPLIER IN METRO MANILA PHILIPPINESELECTRICAL SUPPLIER IN MANILA PHILIPPINESELECTRICAL SUPPLIER IN MANILA PHILIPPINESELECTRICAL SUPPLIER IN NOVALICHES QUEZON CITY PHILIPPINESELECTRICAL SUPPLIER IN NOVALICHES QUEZON CITY PHILIPPINESELECTRICAL SUPPLIER IN SAN JOSE DEL MONTE BULACAN PHILIPPINESELECTRICAL SUPPLIER IN SAN JOSE DEL MONTE BULACAN PHILIPPINESFOR YOUR PHILIPPINE ELECTRICAL CONCERNS...NEEDS...INSTALLATION...QUOTATION...ORDERSKINDLY EMAIL US: SAFEELECTRICAL2013@GMAIL.COMSAFEELECTRICALONLINE@GMAIL.COMFOR YOUR PHILIPPINE ELECTRICAL CONCERNS...NEEDS...INSTALLATION...QUOTATION...ORDERS:KINDLY EMAIL US: SAFEELECTRICAL2013@GMAIL.COMSAFEELECTRICALONLINE@GMAIL.COMFOR PHILIPPINE INQUIRIES LIKE LIGHTNING ARRESTER SUPPLY AND INSTALLATIONCONTACT US:FOR PHILIPPINE INQUIRIES LIKE LIGHTNING ARRESTER SUPPLY AND INSTALLATIONCONTACT US:FOR PHILIPPINE INQUIRIES LIKE LIGHTNING ARRESTER SUPPLY AND INSTALLATIONCONTACT US:MOBILE NUMBERS: SMART: +63 09079522099+63 09214026477GLOBE: +63 09273919600+63 09157920129SUN: +63 9227192434+63 09336253505WIRELESS LANDLINE: +63 4068727+63 4922566LANDLINE: +63 4317553HURRY..CALL US...NOW!!!!THANK YOU FOR YOUR ORDERS AND INQUIRIES...LIGHTNING ARRESTER SUPPLIER AND INSTALLER IN THE PHILIPPINESELECTRICAL FENCE SUPPLIER AND INSTALLER IN THE PHILIPPINESLIGHTNING ARRESTER SUPPLIER AND INSTALLER IN METRO MANILAELECTRICAL FENCE SUPPLIER AND INSTALLER IN METRO MANILALIGHTNING ARRESTER SUPPLIER AND INSTALLER IN THE PHILIPPINE ECONOMIC ZONEELECTRICAL FENCE SUPPLIER AND INSTALLER IN THE PHILIPPINE ECONOMIC ZONELIGHTNING ARRESTER SUPPLIER AND INSTALLER IN THE VISAYA REGIONELECTRICAL FENCE SUPPLIER AND INSTALLER IN THE VISAYAS REGIONLIGHTNING ARRESTER SUPPLIER AND INSTALLER IN THE MINDANAOELECTRICAL FENCE SUPPLIER AND INSTALLER IN THE MINDANAOFOR YOUR LIGHTNING STRIKE PROTECTION...LET US HELP YOU AVOID SUCH ACCIDENTS...BEFORE IT IS TOO LATE...BEFORE IT IS TOO LATE...WHEN LIGHTNING STRIKE HIT YOU..I GUARANTEE YOU..YOU'LL NEVER LIVE TO TELL YOUR EXPERIENCE...DON'T BE THE NEXT VICTIM...PROTECT YOURSELF..YOUR FAMILY..YOUR BUSINESS AT ALL TIMES..INSTALL A LIGHTNING ARRESTER IN YOUR PLACE...DO IT NOW BEFORE YOUR CAUGHT UNAWARE...IF YOU HAVE LIGHTING PROTECTION INSTALLED...YOU'LL HAVE PEACE OF MIND...YOU CAN SLEEP WELL EVEN WHEN LIGHTNING STRIKES...YOU KNOW YOUR WELL PROTECTED...IN YOUR HOME, IN YOUR PLACE OF BUSINESS AND IN YOUR PROPERTIES...HURRY..CALL US...NOW!!!!THANK YOU FOR YOUR ADVANCE ORDERS AND INQUIRIES..."PHILIPPINE FOREIGNERS AND PHILIPPINE PROVINCES ELECTRICAL SUPPLIERAND SERVICE PROVIDER""SAFE ELECTRICAL SUPPLY AND SERVICES""SAFE ELECTRICAL SUPPLY AND SERVICES""SAFE ELECTRICAL SUPPLY AND SERVICES""SAFE ELECTRICAL SUPPLY AND SERVICES"Jigz Enerio - Sales/Project CoordinatorSafe Electrical Supply and ServicesRegistered Master Electrician PRC#00034433Real Estate Broker PRC#0000838Institute of Integrated Electrical Engineers(IIEE)Membership#19420Telephone: 4068727 4922566Telefax: 4178583 4317553smart: 09079522099globe: 09273919600sun: 09227192434Building K-415 Smilecitihomes 1 Barangay KaligayahanNovaliches Quezon City 1124YAHOO MESSENGER: SAFEELECTRICALSUPPLYANDSERVICES@YAHOO.COMSAFEELECTRICALSUPPLYANDSERVICESWEBSITE: WWW.SAFEELECTRICALSUPPLYANDSERVICES.BLOGSPOT.COMWEBSITE: WWW.SAFEELECTRICALSUPPLYANDSERVICES.BLOGSPOT.COMWEBSITE: WWW.SAFEELECTRICALSUPPLYANDSERVICES.BLOGSPOT.COMWEBSITE: WWW.SAFEELECTRICALSUPPLYANDSERVICES.BLOGSPOT.COM"The Elevator to Success is always out of order,but one can always use the stairs""One does not Lead by hitting people over the Head,that's assault not Leadership" - Eisenhower"If You Think Education is Expensive,count the cost of being ignorant" - Past Harvard President"If you're gonna be thinking anyway,you might as well think big" - Donald Trump"Insanity, doing the same thingsover and over again,then expecting a different result" - Albert Einstein"Small minds talk of people,average minds talk of events,great minds talk of ideas"“I shall pass this way but once; any good that I can door any kindness I can show to any human being;let me do it now. Let me not defer nor neglect it,for I shall not pass this way again.”Etienne de Grellet (1773-1855);Quaker missionaryIf you wanna make the world a better placetake a look at yourself and make a change- Michael Jackson"The Best things in life are FREE,Family, Relatives, Friends, Health and most especially Time"Our company operates in the principle of cooperation, collaboration,joint partnership/marketing and cross promotion.We treat our people,clients,suppliers,affiliatessubcontractors, business owners, entrepreneurs(SMALL TIME or Bigtime),common people,sales people especially PURCHASING OFFICERS as our business partners and friends.We operate in the principle of Win-Win in every transactions we get involved inand our company would like to establish good long-term relationship with the client we serve...We value and aim for REPEAT BUSINESS...and not just for a one-time transaction...Delivery Schedule: 9am to 10pm Monday to Friday OnlyOFFICE DAYS: Monday to Friday Only9-12PM TO 1-5PM ONLYSaturday: Lord's day "EL SHADDAI" The God who is more than enoughSunday: Family day10% of what the company earns, we give to the Lord,10% of what the company earns, we give to charity,this is the company's way of giving back part of what it earns,to the community and above."It is unwise to pay too much, but it's worst to pay too little.When you pay too much, you lose a little money - that is all...When you pay too little, You sometimes lose everything,Because the thing you bought or the service you acquiredwas incapable of doing the thing it was bought or intended to do.The common law of business balanceprohibits paying a little and getting a lot - it can't be done.If you deal with the lowest bidder,It is well to add something for the risk you run,And if you do that,You will have enough to pay for something better."- JOHN RUSKIN(1819 - 1900)"Good things aren't cheap,and cheap things aren't good"HEALTH TIPS HEALTH TIPS HEALTH TIPS HEALTH TIPS HEALTH TIPS HEALTH TIPSATTENTION: FOR ALL INDIVIDUALS ESPECIALLY THOSE AGE 40 AND ABOVE.MEDICAL EXPERIMENT - MIRACLES WITH WATERJapanese Sickness Association has published the following experiment with WATER.They Claim 100% success for curing old and new diseases as follows:1. Headache, BP, Anaemia, Arthrosis, Paralysis, Palpitation, Epilepsy and Obesity2. Cough, Bronchitis, Asthma, and Tuberculosis3. Meningitis and any other diseases connected with URINE and LIVER.4. Hyper-acidity, Gastritis, Dysentery, Constipation, Piles and Diabetes5. Any other diseases connected with Eye, Nose and Throat.6. Irregular menstrual periods of womenMETHOD OF TREATMENT AND MAINTENANCE:1. Wake-up early morning and drink Four(4) glasses (160ml each) in an empty stomach.Thereafter, no solids or liquids should be taken up to 45 minutes.2. Normal breakfast can be taken after the 45 minutes time elapsed.3. Nothing either liquid or solid should be taken for Two(2) hours after breakfast, the same as with Lunch and Dinner.4. After Dinner nothing should be taken before bedtime or sleep.Sick and old people will find it difficult to drink Four(4) glasses of water at an instant in the beginning, but, can increasegradually to the recommended level in a short time period.Experiment has proved that the following diseases have been cured on treatment of water for the period shown against thema) Hypertension - 30 days d) Constipation - 10 daysb) Gastric Problems - 30 days e) Cancer - 6 monthsc) Diabetes - 30 days f) Tuberculosis - 3 monthsThose who suffering from Arthritis should try this experiment three(3) times a day for one(1) week and thereafter reduce toonce in the morning. For first few days you may experience to pass urine more than the norma, but no side effects.THIS WILL CLEANSED YOUR BODY OF IMPURITIES AND WILLPREVENT MANY TYPES OF DISEASES...EXERCISE RELIGIOUSLY...AS THE SAYING GOES "HEALTH IS WEALTH"REMEMBER:70% of our body is made up of water...only 30% of our body is solid...HEALTH IS WEALTH...WHAT'S THE USE OF HAVING A BILLIONBUT LYING IN A BED - SICKOR SUFFERING FROM AN ILLNESS.....I WOULD RATHER HAVE A CLEAN BILL OF HEALTH FOR A BILLION.WHEN YOU REACH THE AGE OF 35 EXERCISE IS A MUST...WATCH YOUR DIET...EXERCISE DAILY AND RELIGIOUSLYTAKE YOUR MULTIVITAMINS TO SUPPLEMENT YOUR FOOD INTAKE....THE BEST THINGS IN LIFE ARE FREE.....FAMILY....RELATIVES....FRIENDS....HEALTH and most importantly TIME....YOU ARE MORE BLESSED THAN OTHERS...WHEN YOU HAVE BOTH YOUR EYES SO YOU CAN CLEARLY SEEOTHERS HAVE ONLY ONE...OTHERS ARE TOTALLY BLIND...WHEN YOU HAVE BOTH YOUR EARS SO YOU CAN CLEARLY HEAROTHERS HAVE ONLY ONE...OTHERS ARE TOTALLY DEAF...WHEN YOU HAVE BOTH YOUR HANDS SO YOU CAN HOLD THINGS WELLOTHERS HAVE ONLY ONE...OTHERS HAVE NONE...WHEN YOU HAVE BOTH YOUR FEET SO YOU CAN WALK EASILYOTHERS HAVE ONE...OTHERS HAVE NONE..WHEN YOU STILL HAVE YOUR PARENTS...OTHERS HAVE ONE...OTHERS HAVE NONE...WHEN YOU HAVE CHILDREN...OTHERS HAVE ONE...OTHERS HAVE NONE...WHEN YOU HAVE A FAMILY...SOME HAVE NONE...OTHERS TOTALLY ORPHANEDWHEN YOU ARE LIVING IN THE PHILIPPINES...A DEMOCRATIC COUNTRY..THE WEATHER NOT THAT EXTREMELY HOT NOR COLD..WERE PLANTS AND TREES GROW EASILYSURROUNDED BY SEAS FULL OF FISHES AND NATURAL RESOURCESWHEN YOU ARE OLD AND STILL LIVING WITH YOUR CHILDRENIN SOME COUNTRIES OLD PARENTS AND PEOPLEARE LEFT IN THE "HOME OF THE AGED NURSING FOUNDATION"WHEN YOU STILL HAVE YOUR JOB...WORKING IN AN AIR-CONDITIONEDROOM..JUST CONSIDER THE CONSTRUCTION WORKERS DOING THEIRHARD LABOR JOBS UNDER THE HEAT OF THE SUN...IGNORING THEDANGEROUS ELEMENTS CONFRONTING THEM....COUNT YOUR BLESSINGS...COUNT THEM ONE BY ONE...DON'T THINK OF SAYING ANY UNKIND WORD...THINK OF PEOPLE WHO CAN'T SPEAK,DON'T COMPLAIN ABOUT THE FOOD YOU EAT,SOME HAVE NOTHING.DON'T COMPLAIN ABOUT LIFE,PAINT A SMILE ON YOUR FACEAND THANK GOD YOU'RE ALIVE AND STILL AROUNDLIFE IS A GIFT......LIVE IT WELL......SAFETY 1STREPEAT BUSINESS 2NDPRAY ALWAYS IT WORKS!!!ATTENTION: FOREIGN ELECTRICAL MANUFACTURERS AND ELECTRICAL DISTRIBUTORSOUR COMPANY WELCOMES ELECTRICAL FOREIGN SUPPLIER/MANUFACTURER/SWHO WOULD LIKE TO OFFER THEIR PRODUCT LINEHERE IN THE PHILIPPINES BUT ON A CONSIGNMENT BASIS ONLY,MEANING PAYMENT WILL BE FOR A CERTAIN PERIOD...EXAMPLE SIX(6) MONTHS TO ONE(1) YEAR,ALL THOSE ITEMS THAT WILL NOT BE SOLD OR SLOW MOVING ITEMS WILL BE REPLACEDAND WE WILL JUST PAY FOR THOSE SOLD ITEMSYOUR COMPANY WILL BE SHOULDERING THE FORWARDING/FREIGHT COSTOR SHIPMENT COST...WE WILL BE IN CHARGE OF STOCKAGE,MARKETING,SALES AND AFTER SALES CONCERNS..CONTACT,EMAIL OR CALL US IF YOUR COMPANY IS INTERESTED WITH OUR OFFER...BY THE WAY PAYMENT WILL BE BANK TO BANK...YOUR BANK WILL BE COORDINATING WITH OUR LOCAL BANK HERE IN THE PHILIPPINES....CALL/EMAIL US IF YOUR COMPANY IS INTERESTED ON OUR OFFER....ATTENTION: CEO LARRY PAGE...CEO SERGEY BRIN...AND TO THE MANAGEMENT AND STAFF OF GOOGLEFROM THE BOTTOM OUR HEART...THANK YOU FOR THE SEARCH ENGINE OPTIMIZATIONTHAT OUR COMPANY IS GETTING...MAY THE GOOD LORD BLESS YOU AND YOUR COMPANY INCLUDING THE MANAGEMENT AND STAFF...GOOD HEALTH...LONG LIFE...AND A MORE FRUITFUL YEARS AHEAD NOT TO MENTIONINCREASING AND GROWING BOTTOM LINE FOR THE COMPANY....FOR THE THE BEST AND NUMBER ONE SEARCH ENGINE COMPANY IN THE WORLDKUDOS AND SALUTE TO YOUR COMPANY SIR AND MADAM....TO INFINITY AND BEYOND....TO INFINITY AND BEYOND.....
No comments:
Post a Comment