Article View: es.comp.os.linux.programacion
Article #7890Re: bash y passwd
From: catactttc
Date: Sat, 18 Jan 2003 19:52
Date: Sat, 18 Jan 2003 19:52
21 lines
1765 bytes
1765 bytes
In article <v5gof-oa1.ln1@paldaria.dsland.org>, Pacolinx wrote:
> catactttc dijo asi:
>
>> if egrep -q "^${alumno}:" /etc/passwd
>>
>>> [...]
> Esto tampoco funciona
Pregunta muy tonta: �Est� grep o egrep dentro del $PATH de la shell que
ejecuta el script?
Por que si no es as�, "if <comando no encotrado> ;then" dar� siempre
falso!!!
Llama a grep o egrep con el "full path" al ejecutable (x ej:
/usr/bin/egrep)
No puedo pensar en otro motivo de error...
Si no era eso, ejecuta el script con "bash -x script_name" para ver que
es lo que falla.
Technical Details
Message-ID:
<slrnb2jc9b.39.catactttc@paleo.chiti.org>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.icl.net!newsfeed.fjserv.net!news-out.newsfeeds.com!propagator2-maxim!news-in.spamkiller.net!news.telia-iberia.com!news.rediris.es!news.uv.es!not-for-mailReferences:
<2conf-lb2.ln1@paldaria.dsland.org> <slrnb2j20e.39.catactttc@paleo.chiti.org> <v5gof-oa1.ln1@paldaria.dsland.org>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,a0ddc9dad727a552 X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2003-01-18 11:58:20 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.icl.net!newsfeed.fjserv.net!news-out.newsfeeds.com!propagator2-maxim!news-in.spamkiller.net!news.telia-iberia.com!news.rediris.es!news.uv.es!not-for-mail From: catactttc <catactttc@nospam.aqui.com> Newsgroups: es.comp.os.linux.programacion Subject: Re: bash y passwd Date: Sat, 18 Jan 2003 19:52:45 +0000 (UTC) Organization: Universitat de Valencia Lines: 22 Distribution: es Message-ID: <slrnb2jc9b.39.catactttc@paleo.chiti.org> References: <2conf-lb2.ln1@paldaria.dsland.org> <slrnb2j20e.39.catactttc@paleo.chiti.org> <v5gof-oa1.ln1@paldaria.dsland.org> NNTP-Posting-Host: 213-99-156-157.uc.nombres.ttd.es Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: peque.uv.es 1042919565 10171 213.99.156.157 (18 Jan 2003 19:52:45 GMT) X-Complaints-To: newsmanager@uv.es NNTP-Posting-Date: Sat, 18 Jan 2003 19:52:45 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux)