🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: una ayudita con el bash

#6233
From: mad_soft
Date: Tue, 22 Jul 2003 16:29
20 lines
1776 bytes
oki lo he dejado asi

  if [ modprobe lirc_gpio ]
     then
     killall irexec
     killall lircd
     modprobe -r lirc_gpio
  else
     modprobe lirc_gpio
     lircd
     irexec -d
  fi

pero siempre ejecuta la parte del else, ya sea que este cargado el
modulo lirc_gpio o no lo este, porque si no esta cargado solo muestra
este error(*) y si y esta cargado te dice oye que el lirc ya esta cargado.
o sea que siempre ejecuta la parte del else

(*)
./lirc: line 1: [: modprobe: unary operator expected
Technical Details
Message-ID: <bfjopj$fh9ch$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>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII-7-bit
X-Google-Thread: f86c8,b0e07b3d7b695f7
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-07-22 09:29:41 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 18:29:24 +0200
Lines: 21
Message-ID: <bfjopj$fh9ch$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>
NNTP-Posting-Host: 81-202-208-231.user.ono.com (81.202.208.231)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de 1058891379 16295313 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: <slrnbhqht3.mf3.sio2.arr@cebolleta.net.dhis.org>