🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Detectar si el CD est� insertado

#2063
From: Pascal Bourguignon
Date: Mon, 02 May 2005 21:34
15 lines
1441 bytes
David Lago <dlago@mundo-r.com> writes:
> Estoy haciendo un programa que necesita chequear si hay o no un CD/DVD
> insertado en la unidad... �C�mo lo hago?

if cdinfo|grep -q -s 'No medium found' ; then
   echo No hay CD/DVD ninguno insertado.
else 
   echo Si hay un CD/DVD insertado.
fi

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
You're always typing.
Well, let's see you ignore my
sitting on your hands.
Technical Details
Message-ID: <87br7tb9d8.fsf@thalassa.informatimago.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!proxad.net!news.newsland.it!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!feed.news.tiscali.de!easynet-quince!easynet.net!easynet-post2!not-for-mail
References: <d564h2$tf19@cesio.mundo-r.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f86c8,ed58e66b60aac63a
X-Google-Attributes: gidf86c8,public
X-Google-Language: ENGLISH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!proxad.net!news.newsland.it!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!feed.news.tiscali.de!easynet-quince!easynet.net!easynet-post2!not-for-mail
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Detectar si el CD est� insertado
References: <d564h2$tf19@cesio.mundo-r.com>
From: Pascal Bourguignon <pjb@informatimago.com>
Date: Mon, 02 May 2005 23:34:11 +0200
Message-ID: <87br7tb9d8.fsf@thalassa.informatimago.com>
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)
Cancel-Lock: sha1:sa98Styr1X4EVDlJFJkEiwOLS0E=
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 8bit
Lines: 15
Organization: [posted via Easynet Spain]
NNTP-Posting-Host: 62.93.174.79
X-Trace: DXC=d[549ehLNa>LH>POcVjK?8le1^NnlQj72bBd4DjF1d]1