Article View: es.comp.os.linux.programacion
Article #7558Re: kernel y bash
From: Helio.es
Date: Thu, 13 Feb 2003 21:46
Date: Thu, 13 Feb 2003 21:46
27 lines
1645 bytes
1645 bytes
�Has mirado el file /proc/cmdline?
Por ejemplo:
for f in `cat cmdline` ; do
nombre=`echo $f | cut -d'=' -f1`
valor=`echo $f | cut -d'=' -f2`
echo $nombre "tiene valor" $valor
done
"Guillem Alminyana" <galminyana_NO_BASURA_@telefonica.net> escribi� en
el mensaje news:b2g61f$1bsp36$1@ID-165466.news.dfncis.de...
> Buenas,
>
> Querria saber si es posible la recuperacion de variables (?se llaman
asi?)
> del kernel desde un script bash.
> Me refiero a algo del estilo:
>
> LILO: Linux VARIABLE=pepe #/*(esto en el arranque)*/
>
> para luego recuperar el valor de VARIABLE con un simple: #echo
$VARIABLE.
>
> Saludos.
>
>
Technical Details
Message-ID:
<b2h3mu$1cni5p$1@ID-165255.news.dfncis.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!feed.news.nacamar.de!fu-berlin.de!uni-berlin.de!80-25-0-142.uc.nombres.ttd.ES!not-for-mailReferences:
<b2g61f$1bsp36$1@ID-165466.news.dfncis.de>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,ac5fe9c51b73ef2a X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2003-02-13 13:46:08 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!feed.news.nacamar.de!fu-berlin.de!uni-berlin.de!80-25-0-142.uc.nombres.ttd.ES!not-for-mail From: "Helio.es" <nospam_heltena@hotmail.com> Newsgroups: es.comp.os.linux.programacion Subject: Re: kernel y bash Date: Thu, 13 Feb 2003 22:46:19 +0100 Lines: 29 Message-ID: <b2h3mu$1cni5p$1@ID-165255.news.dfncis.de> References: <b2g61f$1bsp36$1@ID-165466.news.dfncis.de> NNTP-Posting-Host: 80-25-0-142.uc.nombres.ttd.es (80.25.0.142) X-Trace: fu-berlin.de 1045172767 46909625 80.25.0.142 (16 [165255]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000