🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #10193

Re: Codigo de programa.

#10193
From: Fernando Arbeiza
Date: Wed, 20 Mar 2002 19:15
14 lines
1266 bytes
On Wed, 20 Mar 2002 19:04:27 +0100, listen <mebeke@hotmail.com> wrote:
> Necesito una aplicacion que haga un ping a una maquina y si esta no
> responde, que la primera se apage.

	Se puede hacer con un script bash, y con el ping de linux:

	ping -c 3 nombre_de_la_maquina || poweroff

	Esa orden funcionar�a en mi sistema.


-- 
Fernando Arbeiza
Cantabria, Spain
Technical Details
Message-ID: <slrna9hnqq.r2.arbeizaf@jupiter.olimpo>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.rediris.es!newsf01.ono.com!news.ono.com.POSTED!not-for-mail
References: <a7aisc$k25p3$1@ID-130039.news.dfncis.de>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,b2a42343c258b76b
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-03-20 11:14:23 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.rediris.es!newsf01.ono.com!news.ono.com.POSTED!not-for-mail
Newsgroups: es.comp.os.linux.programacion
From: Fernando Arbeiza <arbeizaf@ono.com>
Subject: Re: Codigo de programa.
References: <a7aisc$k25p3$1@ID-130039.news.dfncis.de>
Message-ID: <slrna9hnqq.r2.arbeizaf@jupiter.olimpo>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 8bit
User-Agent: slrn/0.9.7.3 (Linux)
Lines: 14
Date: Wed, 20 Mar 2002 19:15:03 GMT
NNTP-Posting-Host: 62.42.152.87
X-Trace: news.ono.com 1016651703 62.42.152.87 (Wed, 20 Mar 2002 20:15:03 MET)
NNTP-Posting-Date: Wed, 20 Mar 2002 20:15:03 MET