🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: una ayudita con el bash

#6236
From: sio2
Date: Tue, 22 Jul 2003 16:58
26 lines
2027 bytes
El martes, 22 de julio de 2003, a las 16:29 GMT, mad_soft escribi�:
> oki lo he dejado asi
> 
>   if [ modprobe lirc_gpio ]
>      then
> [...]
>
> [...]
> 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

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

-- 
Los grandes hombres solemos ser modestos.
                  --- Juan de Mairena --
   Si     Di�xido de Silicio |        Debian GNU/Linux 
  /  \         (SiO2)        |    Jos� Miguel S�nchez Al�s
 O    O   Mineral de Cuarzo  |  sio2.arr@ba.online.fr | URL #257033
Technical Details
Message-ID: <slrnbhqrah.pff.sio2.arr@cebolleta.net.dhis.org>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!fu-berlin.de!uni-berlin.de!22.red-80-37-129.pooles.rima-tde.NET!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>

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:00:18 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!fu-berlin.de!uni-berlin.de!22.red-80-37-129.pooles.rima-tde.NET!not-for-mail
From: sio2 <sio2.arr@ba.online.fr>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: una ayudita con el bash
Date: Tue, 22 Jul 2003 18:58:57 +0200
Lines: 26
Message-ID: <slrnbhqrah.pff.sio2.arr@cebolleta.net.dhis.org>
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>
Reply-To: sio2.arr@ba.online.fr
NNTP-Posting-Host: 22.red-80-37-129.pooles.rima-tde.net (80.37.129.22)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de 1058893217 16428697 80.37.129.22 (16 [113866])
X-Orig-Path: cebolleta.net.dhis.org!news
User-Agent: slrn/0.9.7.4 (Linux)