🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: una ayudita con el bash

#6237
From: mad_soft
Date: Tue, 22 Jul 2003 17:37
28 lines
1964 bytes
Nada, he probado asi en lineas separadas y juntas con el ;
y ahora siempre me ejecuta la parte del if o sea que siempre esta
intentando matar los procesos y demas

  if modprobe lirc_gpio
     then
     {
     killall irexec
     killall lircd
     modprobe -r lirc_gpio
     }
  else
     {
     modprobe lirc_gpio
     lircd
     irexec -d
     }
  fi


sio2 escribi�:
> Me he colado, lo siento. Debe ser sin los []. Los corchetes son para
> usar test con una expresi�n l�gica (comparaci�n, etc...), es decir:
> 
> if modprobe lirc_gpio; then
> 
> o en dos l�neas, por supuesto
> 
Technical Details
Message-ID: <bfjspl$ffkaq$1@ID-62384.news.uni-berlin.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!81-202-208-231.user.ono.COM!not-for-mail
References: <bfi1qu$emqrf$1@ID-62384.news.uni-berlin.de> <Xns93C02A48D7D94FalsoComoJudasmixmai@130.133.1.4> <bfj8cp$f1k9c$2@ID-62384.news.uni-berlin.de> <slrnbhqht3.mf3.sio2.arr@cebolleta.net.dhis.org> <bfjopj$fh9ch$1@ID-62384.news.uni-berlin.de> <slrnbhqrah.pff.sio2.arr@cebolleta.net.dhis.org>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,b0e07b3d7b695f7
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-07-22 10:38:00 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!81-202-208-231.user.ono.COM!not-for-mail
From: mad_soft <mad_soft@terra.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: una ayudita con el bash
Date: Tue, 22 Jul 2003 19:37:42 +0200
Lines: 29
Message-ID: <bfjspl$ffkaq$1@ID-62384.news.uni-berlin.de>
References: <bfi1qu$emqrf$1@ID-62384.news.uni-berlin.de> <Xns93C02A48D7D94FalsoComoJudasmixmai@130.133.1.4> <bfj8cp$f1k9c$2@ID-62384.news.uni-berlin.de> <slrnbhqht3.mf3.sio2.arr@cebolleta.net.dhis.org> <bfjopj$fh9ch$1@ID-62384.news.uni-berlin.de> <slrnbhqrah.pff.sio2.arr@cebolleta.net.dhis.org>
NNTP-Posting-Host: 81-202-208-231.user.ono.com (81.202.208.231)
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de 1058895478 16240986 81.202.208.231 (16 [62384])
User-Agent: Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.4) Gecko/20030624
X-Accept-Language: es-es
In-Reply-To: <slrnbhqrah.pff.sio2.arr@cebolleta.net.dhis.org>