<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>El Blog de Rafael Bucio &#187; bash</title>
	<atom:link href="http://bucio.com.mx/sobre/bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://bucio.com.mx</link>
	<description>Sobre mi, sobre Linux, sobre todo lo que yo quiera :D</description>
	<lastBuildDate>Fri, 27 Aug 2010 03:10:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>nmap host</title>
		<link>http://bucio.com.mx/2010/03/nmap-host/</link>
		<comments>http://bucio.com.mx/2010/03/nmap-host/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 06:12:27 +0000</pubDate>
		<dc:creator>Rafael Bucio</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Seguridad]]></category>
		<category><![CDATA[bash]]></category>

		<guid isPermaLink="false">http://bucio.com.mx/?p=862</guid>
		<description><![CDATA[[ root [at] eva:/home/bucio# ] &#62; nmap -sP 192.168.1.0/24 Starting Nmap 4.62 ( http://nmap.org ) at 2010-03-29 23:32 CST Host esponda1.lan (192.168.1.64) appears to be up. MAC Address: 00:22:--:--:8-:72 (Unknown) Host Unknown-00-11--1-11-11-dc.lan (192.168.1.66) appears to be up. Host Bucio-Ju4x0r.lan (192.168.1.96) appears to be up. MAC Address: 00:18:--:--:22:B1 (Cameo Communications) Host dsldevice.lan (192.168.1.254) appears to be [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="aligncenter" style="border: 0px initial initial;" src="http://nmap.org/images/diehard4/nmap-diehard4-1080p-1920x801.png" alt="" width="560" height="234" /></p>
<pre class="brush: bash" style="text-align: justify;">[  root [at] eva:/home/bucio#   ]
&gt; nmap -sP 192.168.1.0/24 

Starting Nmap 4.62 ( http://nmap.org ) at 2010-03-29 23:32 CST
Host esponda1.lan (192.168.1.64) appears to be up.
MAC Address: 00:22:--:--:8-:72 (Unknown)
Host Unknown-00-11--1-11-11-dc.lan (192.168.1.66) appears to be up.
Host Bucio-Ju4x0r.lan (192.168.1.96) appears to be up.
MAC Address: 00:18:--:--:22:B1 (Cameo Communications)
Host dsldevice.lan (192.168.1.254) appears to be up.
MAC Address: 00:12:--:--:2-:0C (Thomson Telecom Belgium)
Nmap done: 256 IP addresses (4 hosts up) scanned in 22.197 seconds</pre>
<pre class="brush: bash" style="text-align: justify;">[  root [at] eva:/home/bucio#   ]
&gt; nmap -sP 192.168.1.0/24 | grep "lan"
Host esponda1.lan (192.168.1.64) appears to be up.
Host Unknown-00-11-..--6-12-dc.lan (192.168.1.66) appears to be up.
Host Bucio-Ju4x0r.lan (192.168.1.96) appears to be up.
Host dsldevice.lan (192.168.1.254) appears to be up.</pre>
]]></content:encoded>
			<wfw:commentRss>http://bucio.com.mx/2010/03/nmap-host/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>200 bicentenario</title>
		<link>http://bucio.com.mx/2010/02/200-bicentenario/</link>
		<comments>http://bucio.com.mx/2010/02/200-bicentenario/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 06:18:05 +0000</pubDate>
		<dc:creator>Rafael Bucio</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[frases]]></category>

		<guid isPermaLink="false">http://bucio.com.mx/?p=843</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<div class="wp-caption aligncenter" style="width: 510px"><a href="http://farm5.static.flickr.com/4050/4383573931_d7658a3681_o.png" rel="lightbox[843]"><img title="200 años orgullosamente mexicanos" src="http://farm5.static.flickr.com/4050/4383573931_534494b884.jpg" alt="200 años orgullosamente mexicanos" width="500" height="313" /></a><p class="wp-caption-text">200 años orgullosamente mexicanos</p></div>
]]></content:encoded>
			<wfw:commentRss>http://bucio.com.mx/2010/02/200-bicentenario/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Mi conky</title>
		<link>http://bucio.com.mx/2009/09/mi-conky/</link>
		<comments>http://bucio.com.mx/2009/09/mi-conky/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 22:38:39 +0000</pubDate>
		<dc:creator>Rafael Bucio</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[conky]]></category>

		<guid isPermaLink="false">http://bucio.com.mx/?p=611</guid>
		<description><![CDATA[Esta son las configuraciones de mi conky, ya que @hbautista me dijo que si se lo pasaba,  y se me olvido, y pues con esto de la universidad casi no tengo mucho tiempo. [flickr: http://www.flickr.com.../] son dos conquis, que se corren con un archivo en Bash,  ejecutan a los dos conkys que tengo ocultos .conkyrc1 [...]]]></description>
			<content:encoded><![CDATA[<p>Esta son las configuraciones de mi <a href="http://bucio.com.mx/sobre/conky/">conky,</a> ya que <a href="http://twitter.com/hbautista">@hbautista</a> me dijo que si se lo pasaba,  y se me olvido, y pues con esto de la universidad casi no tengo mucho tiempo.</p>
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://farm3.static.flickr.com/2622/3829889060_7b7dd9039b_o.png" rel="lightbox[611]"><img title="Conky mes de Agosto" src="http://farm3.static.flickr.com/2622/3829889060_c8416f39c7.jpg" alt="" width="500" height="313" /></a><p class="wp-caption-text">Conky mes de Agosto</p></div>
<p style="text-align: center;">[flickr: <a href="http://www.flickr.com/photos/bucio/3829889060/in/set-72157603137746237/" target="_blank">http://www.flickr.com.../</a>]</p>
<p style="text-align: left;">son dos conquis, que se corren con un archivo en <a href="http://bucio.com.mx/sobre/bash/">Bash</a>,  ejecutan a los dos conkys que tengo ocultos .conkyrc1 y .conkyrc2, este archivo en Bash, se ejecuta al arrancar, pues se guarda el código de abajo en un archivo &#8220;conkycorrer&#8221; o como quieras recuerda darle permisos de ejecución (chmod +x archivo)</p>
<p><code>conky -c  ./.conkyrc1 -d &amp;&amp; conky -c  ./.conkyrc2 -d</code></p>
<p>Puedes usar el comando sleep, para que no cargue y se trabe&#8230;<br />
Aquí están los conkys.<br />
<a href="http://works.bucio.com.mx/code/~gnu~Linux/conky/Conky_Septiembre_2009.tar.gz">Link descarga.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bucio.com.mx/2009/09/mi-conky/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>GtkDialog</title>
		<link>http://bucio.com.mx/2009/06/gtkdialog-vi/</link>
		<comments>http://bucio.com.mx/2009/06/gtkdialog-vi/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 00:58:06 +0000</pubDate>
		<dc:creator>Rafael Bucio</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[gtkdialog]]></category>

		<guid isPermaLink="false">http://bucio.com.mx/?p=524</guid>
		<description><![CDATA[Continua de GtkDiialog-IV. Siguiendo con las ventanitas (yo les digo así),  como todás comienza por &#60;windows&#62; y dentro de ella va un &#60;/frame&#62;: &#60;window&#62; &#60;vbox&#62; &#60;frame ventanita&#62; &#60;text&#62; &#60;label&#62; es como hacer un frame &#60;/label&#62; &#60;/text&#62; &#60;/frame&#62; &#60;hbox&#62; &#60;button ok&#62;&#60;/button&#62; &#60;button cancel&#62;&#60;/button&#62; &#60;/hbox&#62; &#60;/vbox&#62; &#60;/window&#62; [script ventanitaframe] Hay muchos tipos de atibutos, como posición, tipo [...]]]></description>
			<content:encoded><![CDATA[<p>Continua de <a href="http://bucio.com.mx/2009/03/gtkdialog-iv/">GtkDiialog-IV</a>.</p>
<p>Siguiendo con las ventanitas (yo les digo así),  como todás comienza por &lt;windows&gt; y dentro de ella va un &lt;/frame&gt;:</p>
<p><code><br />
</code></p>
<blockquote><p><strong><span style="color: #000000;">&lt;window&gt;<br />
&lt;vbox&gt;</span></strong><br />
&lt;frame ventanita&gt;</p>
<p>&lt;text&gt;<br />
<strong>&lt;label&gt; es como hacer un frame &lt;/label&gt;</strong><br />
&lt;/text&gt;</p>
<p>&lt;/frame&gt;<br />
&lt;hbox&gt;<br />
&lt;button ok&gt;&lt;/button&gt;<br />
&lt;button cancel&gt;&lt;/button&gt;<br />
&lt;/hbox&gt;<br />
<strong>&lt;/vbox&gt;<br />
&lt;/window&gt;</strong></p></blockquote>
<div id="attachment_525" class="wp-caption aligncenter" style="width: 310px"><a href="http://bucio.com.mx/wp-content/uploads/2009/06/pantallazo-315.png" rel="lightbox[524]"><img class="size-medium wp-image-525" title="window" src="http://bucio.com.mx/wp-content/uploads/2009/06/pantallazo-315-300x214.png" alt="Ejemplo " width="300" height="214" /></a><p class="wp-caption-text">Ejemplo </p></div>
<p style="text-align: center;">[script <a href="http://works.bucio.com.mx/code/~gnu~Linux/Bash/gtkdialog/ventanitaframe" target="_blank">ventanitaframe</a>]</p>
<p style="text-align: left;">Hay muchos tipos de atibutos, como posición, tipo de dialogo(mensaje, alerta..):</p>
<p style="text-align: left;">
<div id="attachment_526" class="wp-caption aligncenter" style="width: 310px"><a href="http://bucio.com.mx/wp-content/uploads/2009/06/pantallazo-316.png" rel="lightbox[524]"><img class="size-medium wp-image-526" title="Ventanitas Atributos" src="http://bucio.com.mx/wp-content/uploads/2009/06/pantallazo-316-300x159.png" alt="Ventanitas Atributos" width="300" height="159" /></a><p class="wp-caption-text">Ventanitas Atributos</p></div>
<p style="text-align: center;">[script <a href="http://works.bucio.com.mx/code/~gnu~Linux/Bash/gtkdialog/ventanitaframe1">ventanitaframe1</a>]</p>
<div class="igBar"><span id="lxml-2"><a href="#" onclick="javascript:showCodeTxt('xml-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-2">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">#! /bin/bash</div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">export DIALOG='</div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;window</span> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">"EJEMPLO"</span> <span style="color: #000066;">icon-name</span>=<span style="color: #ff0000;">"gtk-dialog-warning"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;vbox<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;frame</span> Description<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;text<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;label<span style="font-weight: bold; color: black;">&gt;</span></span></span> Con el atributo icon-name=&quot;gtk-dialog-warning&quot; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/label<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/text<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/frame<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;hbox<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;button</span> ok<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/button<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;button</span> cancel<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/button<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/hbox<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/vbox<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/window<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">'</div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">gtkdialog --program=DIALOG</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">export DIALOG='</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;window</span> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">"EJEMPLO"</span> <span style="color: #000066;">decorated</span>=<span style="color: #ff0000;">"false"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;vbox<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;frame</span> Description<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;text<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;label<span style="font-weight: bold; color: black;">&gt;</span></span></span>Con el atributo decorated=false<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/label<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/text<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/frame<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;hbox<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;button</span> ok<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/button<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;button</span> cancel<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/button<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/hbox<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/vbox<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/window<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">'</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">gtkdialog --program=DIALOG</div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">export DIALOG='</div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;window</span> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">"Ejemplo"</span> <span style="color: #000066;">resizable</span>=<span style="color: #ff0000;">"false"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;vbox<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;frame</span> Description<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;text<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;label<span style="font-weight: bold; color: black;">&gt;</span></span></span>Con el atributo resizable=false<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/label<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/text<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/frame<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;hbox<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;button</span> ok<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/button<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;button</span> cancel<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/button<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/hbox<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/vbox<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/window<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">'</div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">gtkdialog --program=DIALOG</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">export DIALOG='</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;window</span> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">"Ejemplo centrado"</span> window_<span style="color: #000066;">position</span>=<span style="color: #ff0000;">"1"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;vbox<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;frame</span> Description<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;text<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;label<span style="font-weight: bold; color: black;">&gt;</span></span></span> la ventana centrada window_position=1 (GTK_WIN_POS_CENTER)<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/label<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/text<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/frame<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;hbox<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;button</span> ok<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/button<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;button</span> cancel<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/button<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/hbox<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/vbox<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/window<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">'</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">gtkdialog --program=DIALOG</div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">export DIALOG='</div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;window</span> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">"Ejemplo mouse"</span> window_<span style="color: #000066;">position</span>=<span style="color: #ff0000;">"2"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;vbox<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;frame</span> Description<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;text<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;label<span style="font-weight: bold; color: black;">&gt;</span></span></span> Ejemplo donde de donde dse ecunetre el puntero window_position=2 (GTK_WIN_POS_MOUSE)<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/label<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/text<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/frame<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;hbox<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;button</span> ok<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/button<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;button</span> cancel<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/button<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/hbox<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/vbox<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/window<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">'</div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">gtkdialog --program=DIALOG</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">export DIALOG='</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;window</span> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">"Ejemplo"</span> skip_taskbar_<span style="color: #000066;">hint</span>=<span style="color: #ff0000;">"true"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;vbox<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;frame</span> Description<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;text<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;label<span style="font-weight: bold; color: black;">&gt;</span></span></span>atributo skip_taskbar_hint=true<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/label<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/text<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/frame<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;hbox<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;button</span> ok<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/button<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;button</span> cancel<span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/button<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/hbox<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/vbox<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/window<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">'</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">gtkdialog --program=DIALOG </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Mientras esa serían las ventanitas, para jugar un rato, un post más y se termina mi odisea de aprender bien el gtk-dialog... <img src='http://bucio.com.mx/wp-content/plugins/smilies-themer/adiumicons/biggrin.png' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://bucio.com.mx/2009/06/gtkdialog-vi/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Una tarea??</title>
		<link>http://bucio.com.mx/2009/05/una-tarea/</link>
		<comments>http://bucio.com.mx/2009/05/una-tarea/#comments</comments>
		<pubDate>Tue, 19 May 2009 00:49:42 +0000</pubDate>
		<dc:creator>Rafael Bucio</dc:creator>
				<category><![CDATA[bash]]></category>

		<guid isPermaLink="false">http://bucio.com.mx/?p=517</guid>
		<description><![CDATA[Hoy estaba en mi casa como cualquier día tomando una tecate y una amiga me manda un mensaje, me dice que si le ayudaba con una tarea en bash :O, sobre altas de usuarios y bajas, pues como me soy buena onda le ayude, ya con unas chelitas arriba esto salio: PLAIN TEXT C: #!/bin/bash [...]]]></description>
			<content:encoded><![CDATA[<p>Hoy estaba en mi casa como cualquier día tomando una tecate y una amiga me manda un mensaje, me dice que si le ayudaba con una tarea en <a href="http://bucio.com.mx/category/bash/">bash</a> :O, sobre altas de usuarios y bajas, pues como me soy buena onda le ayude, ya con unas chelitas arriba esto salio: </p>
<div class="igBar"><span id="lc-4"><a href="#" onclick="javascript:showCodeTxt('c-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">C:</span>
<div id="c-4">
<div class="c">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #339933;">#!/bin/bash</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #339933;"># Primera bienvenida al sistema</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">clear </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">echo <span style="color: #ff0000;">' Bienvenido al sistema'</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">echo <span style="color: #ff0000;">''</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">echo <span style="color: #ff0000;">''</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">echo <span style="color: #ff0000;">' Porfavor elija el menu '</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #339933;"># usando select para los menus</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OPCIONES=<span style="color: #ff0000;">"Agregar Borrar Salir"</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;select opt in $OPCIONES; <span style="color: #b1b100;">do</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #339933;">#empezamos el select</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#91;</span> <span style="color: #ff0000;">"$opt"</span> = <span style="color: #ff0000;">"Salir"</span> <span style="color: #66cc66;">&#93;</span>; then</div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo <span style="color: #ff0000;">"Gracias por usar el sistema"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; elif <span style="color: #66cc66;">&#91;</span> <span style="color: #ff0000;">"$opt"</span> = <span style="color: #ff0000;">"Agregar"</span> <span style="color: #66cc66;">&#93;</span>; then</div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo <span style="color: #ff0000;">" Agregar usuarios"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo <span style="color: #ff0000;">" "</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo <span style="color: #ff0000;">" ¿Cual es tu nombre? "</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;read <span style="color: #ff0000;">"nombre"</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo <span style="color: #ff0000;">"¿cual es tu nick?"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;read <span style="color: #ff0000;">"nick"</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo <span style="color: #ff0000;">"¿tu contraseña?"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;read <span style="color: #ff0000;">"pass"</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;clear </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo Hola $nombre te has registrado con el usuario $nick y contraseña $pass.</div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #339933;">#creamos un archivo con touch, con el nombre del user <img src='http://bucio.com.mx/wp-content/plugins/smilies-themer/adiumicons/biggrin.png' alt=':D' class='wp-smiley' /> </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;touch $nick</div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;echo <span style="color: #ff0000;">" Usuario: $nombre $nick $pass "</span>&gt;&nbsp; $nick</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo <span style="color: #ff0000;">" -------------------"</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo <span style="color: #ff0000;">" ------ Menu -------"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo <span style="color: #ff0000;">" -------------------"</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo <span style="color: #ff0000;">"1.- Agregar usuarios"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo <span style="color: #ff0000;">"2.- Borrar"</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo <span style="color: #ff0000;">"3.- salir "</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo <span style="color: #ff0000;">"precione la tecla que desea del menu"</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; elif <span style="color: #66cc66;">&#91;</span> <span style="color: #ff0000;">"$opt"</span> = <span style="color: #ff0000;">"Borrar"</span> <span style="color: #66cc66;">&#93;</span>; then</div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; clear</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo <span style="color: #ff0000;">"Bienvenido :-)"</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo <span style="color: #ff0000;">"Que usuario desea borrar"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo <span style="color: #ff0000;">" ------------ "</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">#enlistamos los arhivos creados con touch</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ls -l</div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo <span style="color: #ff0000;">" ------------ "</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo <span style="color: #ff0000;">"escriba el nick del usuario a borrar"</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;"># aqui escrbimos el nick mucho cuidado con borrar a un.sh</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; read userborrar</div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo <span style="color: #ff0000;">"Esta apunto de boorar a $userborrar "</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">#borramos el usuario con el poderoso rm rf, mucho cuidado <img src='http://bucio.com.mx/wp-content/plugins/smilies-themer/adiumicons/pinched.png' alt='xD' class='wp-smiley' /> </span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rm -rf $userborrar</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo <span style="color: #ff0000;">"usuario borrado.."</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo <span style="color: #ff0000;">" -------------------"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo <span style="color: #ff0000;">" ------ Menu -------"</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo <span style="color: #ff0000;">" -------------------"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo <span style="color: #ff0000;">"1.- Agregar usuarios"</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo <span style="color: #ff0000;">"2.- Borrar"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo <span style="color: #ff0000;">"3.- salir "</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo <span style="color: #ff0000;">"precione la tecla que desea del menu"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #b1b100;">else</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; clear</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo opción errónea, solo numeros</div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fi</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;done </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://bucio.com.mx/2009/05/una-tarea/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>GtkDialog</title>
		<link>http://bucio.com.mx/2009/03/gtkdialog-iv/</link>
		<comments>http://bucio.com.mx/2009/03/gtkdialog-iv/#comments</comments>
		<pubDate>Sun, 29 Mar 2009 10:40:52 +0000</pubDate>
		<dc:creator>Rafael Bucio</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Programación]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[gtkdialog]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://bucio.com.mx/?p=442</guid>
		<description><![CDATA[continuación de: GtkDialog-III. Creo que es hora de ver como hacer unos menús, siguiendo con la estructura, &#60;menubar&#62;&#60;/menubar&#62; definen la barra de menú, dentro de ella debe de contener &#60;menuitem&#62;&#60;/menuitem&#62; el cual muestra los menú. &#60;menubar&#62; &#60;menu&#62; &#60;menuitem&#62; &#60;label&#62;gtk-open&#60;/label&#62; &#60;/menuitem&#62; &#60;menuitem&#62; &#60;label&#62;gtk-save&#60;/label&#62; &#60;/menuitem&#62; &#60;menuitem&#62; &#60;label&#62;gtk-quit&#60;/label&#62; &#60;action&#62;EXIT="quit"&#60;/action&#62; &#60;/menuitem&#62; &#60;label&#62;File&#60;/label&#62; &#60;/menu&#62; &#60;/menubar&#62; [Código: Menu.sh ] En la [...]]]></description>
			<content:encoded><![CDATA[<p>continuación de: <a href="http://bucio.com.mx/2009/03/gtkdialog-iii/">GtkDialog-III</a>.</p>
<p>Creo que es hora de ver como hacer unos menús, siguiendo con la estructura, <strong>&lt;menubar&gt;&lt;/menubar&gt;</strong> definen la barra de menú, dentro de ella debe de contener <strong>&lt;menuitem&gt;&lt;/menuitem&gt;</strong> el cual muestra los menú.<br />
<code><br />
&lt;menubar&gt;<br />
&lt;menu&gt;<br />
<span style="color: #ff0000;">&lt;menuitem&gt;<br />
&lt;label&gt;gtk-open&lt;/label&gt;<br />
&lt;/menuitem&gt;</span><br />
<span style="color: #ff0000;">&lt;menuitem&gt;<br />
<span style="color: #000000;"> &lt;label&gt;gtk-save&lt;/label&gt;</span><br />
&lt;/menuitem&gt;<br />
&lt;menuitem&gt;</span><br />
&lt;label&gt;gtk-quit&lt;/label&gt;<br />
&lt;action&gt;EXIT="quit"&lt;/action&gt;<br />
&lt;/menuitem&gt;<br />
&lt;label&gt;File&lt;/label&gt;<br />
&lt;/menu&gt;<br />
&lt;/menubar&gt;<br />
</code></p>
<p style="text-align: center;"><a href="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-201.png" rel="lightbox[442]"><img class="size-medium wp-image-443 aligncenter" title="Menuss" src="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-201-300x149.png" alt="Menuss" width="300" height="149" /></a>[Código: <a href="http://works.bucio.com.mx/code/~gnu~Linux/Bash/gtkdialog/menu.sh">Menu.sh</a> ]</p>
<p>En la barra de menu podemos usar iconos, como el ejemplo que puse en la imagen, con el atributo <strong>icon="gtk-icono a usar"</strong>,  y crear etiquetas alado de los iconos,  para usar los predifinidos sin etiquetas (labels), podemos usar <strong>stock="gtk-open"</strong>, lo cual pondría el icono con su nombre pero, esto ya depende del sistema,  al poner el icono gtk-open y tienes tu distribución en español, lo leera como "abierto", podemos decir los predifinidos :D.. también tenemos una opción de separar los menus con <strong>&lt;separator&gt;&lt;/separator&gt;</strong>. Esté es un ejemplo.</p>
<p style="text-align: center;"><a href="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-202.png" rel="lightbox[442]"><img class="size-medium wp-image-444 aligncenter" title="Menu con iconos" src="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-202-300x159.png" alt="Menu con iconos" width="300" height="159" /></a>[Código: <a href="http://works.bucio.com.mx/code/~gnu~Linux/Bash/gtkdialog/menuicon.sh">MenuIcon.sh</a>]</p>
<p>En el menú, open podemos usar chooser:</p>
<p style="text-align: center;"><a href="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-205.png" rel="lightbox[442]"><img class="size-medium wp-image-446 aligncenter" title="Chooser" src="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-205-300x181.png" alt="Chooser" width="300" height="181" /></a>[Código: <a href="http://works.bucio.com.mx/code/~gnu~Linux/Bash/gtkdialog/choo.sh">choo.sh</a>]</p>
<p style="text-align: left;">Algo parecido a un menú, es el noteBook, esto en lo personal me gusto mucho:</p>
<p style="text-align: center;"><a href="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-203.png" rel="lightbox[442]"><img class="size-medium wp-image-445 aligncenter" title="NoteBook" src="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-203-300x164.png" alt="NoteBook" width="300" height="164" /></a>[Código: <a href="http://works.bucio.com.mx/code/~gnu~Linux/Bash/gtkdialog/notebook.sh">notebook.sh</a>]</p>
<p>Para crear las pestañas, se usa <strong>&lt;notebook&gt;&lt;/notebook&gt;</strong>, dentro de ella los atributos serían los menus, por así decirlo <strong>&lt;notebook labels="<em>Checkbox|Radiobutton|Tree</em>"&gt;</strong>. dentro de ello se pone el contenido de cada pestaña, ya sea abriendo un nuevo &lt;vbox&gt; o como en el caso de Tree, un nuevo &lt;tree&gt;.</p>
<p>Solo es cosa de idear como queremos el menú, y poner a trabajar nuestras mentes maleadas :D...</p>
<h2><span style="color: #ff0000;">Creando siguiente tema, creo que serán sobre ventanas xD.</span></h2>
]]></content:encoded>
			<wfw:commentRss>http://bucio.com.mx/2009/03/gtkdialog-iv/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>GtkDialog</title>
		<link>http://bucio.com.mx/2009/03/gtkdialog-iii/</link>
		<comments>http://bucio.com.mx/2009/03/gtkdialog-iii/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 11:25:57 +0000</pubDate>
		<dc:creator>Rafael Bucio</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Programación]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[gtkdialog]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://bucio.com.mx/?p=416</guid>
		<description><![CDATA[Continuación de : gtkDialog-II Vimos los botones, sencillos entonces nos damos una idea de como funciona esto, lo que se puede hacer con los atributos, hay más widgets todavía, como los Checkbox, esto es sencillo: &#60;checkbox&#62; &#60;label&#62;Esto es un CheckBox&#60;/label&#62; &#60;variable&#62;CAJITA1&#60;/variable&#62; &#60;action&#62;echo checkbox esta en $CHECKBOX marcado&#60;/action&#62;&#62; &#60;/checkbox&#62; Sencillo como crear checkbox, tiene muchos atributos [...]]]></description>
			<content:encoded><![CDATA[<p>Continuación de :</p>
<h2><a href="http://bucio.com.mx/2009/03/gtkdialog-ii/">gtkDialog-II</a></h2>
<p>Vimos los botones, sencillos entonces nos damos una idea de como funciona esto, lo que se puede hacer con los atributos, hay más widgets todavía, como los Checkbox, esto es sencillo:<br />
<code><br />
</code></p>
<pre class="literallayout" style="text-align: left;">&lt;<span style="color: #ff0000;">checkbox</span>&gt;
   &lt;label&gt;Esto es un CheckBox&lt;/label&gt;
   &lt;variable&gt;CAJITA1&lt;/variable&gt;
   &lt;action&gt;echo checkbox esta en $CHECKBOX marcado&lt;/action&gt;&gt;
&lt;<span style="color: #ff0000;">/checkbox</span>&gt;</pre>
<p style="text-align: left;">Sencillo como crear checkbox, tiene muchos atributos como marcar, habilitar, deshabilitar, hacer combinaciones:</p>
<p style="text-align: center;"><a href="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-168.png" rel="lightbox[416]"><img class="size-medium wp-image-417 aligncenter" title="CheckBox" src="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-168-300x134.png" alt="CheckBox" width="300" height="134" /></a>[code: <a href="http://works.bucio.com.mx/code/~gnu~Linux/Bash/gtkdialog/check.sh">check.sh</a>]</p>
<p>No solo cajitas podemos hacer también podemos usar un radio button,  de la misma forma que checkbox :</p>
<p style="text-align: center;"><a href="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-169.png" rel="lightbox[416]"><img class="alignnone size-medium wp-image-418" title="RadioButton" src="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-169-300x153.png" alt="RadioButton" width="300" height="153" /></a><br />
[code: <a href="http://works.bucio.com.mx/code/~gnu~Linux/Bash/gtkdialog/checkb.sh">checkb.sh</a>]</p>
<p>Teniendo en cuenta esto, también salen los combos, las cajitas de combox, aquí tiene un nombre chistoso combobox:</p>
<p style="text-align: center;"><a href="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-170.png" rel="lightbox[416]"><img class="alignnone size-medium wp-image-419" title="Combobox" src="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-170-300x170.png" alt="Combobox" width="300" height="170" /></a><br />
[code: <a href="http://works.bucio.com.mx/code/~gnu~Linux/Bash/gtkdialog/combobox.sh">combobox.sh</a>]</p>
<p>Todo esto me hace recordar a mi querido zenity, en el bash, a lo que mis recuerdos me llevan a que aquí también tenemos una barra de progreso, un poco más divertida:</p>
<p><code><span style="color: #ff0000;"> &lt;progressbar&gt;</span><br />
&lt;label&gt;algo de texto&lt;/label&gt;<br />
&lt;input&gt;<strong>for i in $(seq 0 10 100); do echo $i; sleep 0.3; done</strong>&lt;/input&gt;<br />
&lt;action type="exit"&gt;Listo&lt;/action&gt;<br />
<span style="color: #ff0000;"> &lt;/progressbar&gt;</span></code></p>
<p>Podemos ver que no tiene nada diferente a lo demás, en el input podemos ejecutar el tiempo y con un simple ciclo for,  Son determinados  espacios en un tiempo..</p>
<p style="text-align: center;"><a href="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-171.png" rel="lightbox[416]"><img class="alignnone size-medium wp-image-420" title="Barra" src="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-171-300x95.png" alt="Barra" width="300" height="95" /></a><br />
[code: <a href="http://works.bucio.com.mx/code/~gnu~Linux/Bash/gtkdialog/progresobar.sh">progresobar.sh</a>]</p>
<p>En zenity, es un poco más facil y solo consta de :</p>
<p><code><strong><span style="color: #ff0000;">zenity</span></strong> <strong>--progress</strong> <strong>--auto-close</strong></code></p>
<p>La barra de Progreso, también puede dividirse por partes e imprimir algunas frases dentro de la barra, como el ejemplo del for simple que estaba arriba, solo que aquí creamos una Función, sip una función para agrupar trozos de código de una manera más lógica:</p>
<div class="igBar"><span id="lphp-7"><a href="#" onclick="javascript:showCodeTxt('php-7'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-7">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> progress<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">for</span> i in $<span style="color:#006600; font-weight:bold;">&#40;</span>seq <span style="color:#CC66CC;color:#800000;">0</span> <span style="color:#CC66CC;color:#800000;">10</span> <span style="color:#CC66CC;color:#800000;">100</span><span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#616100;">do</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#0000FF;">$i</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span> <span style="color:#FF0000;">"$i"</span> -le <span style="color:#CC66CC;color:#800000;">30</span> <span style="color:#006600; font-weight:bold;">&#93;</span> &amp;amp;&amp;amp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"Empieza... tun tun"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span> <span style="color:#FF0000;">"$i"</span> -le <span style="color:#CC66CC;color:#800000;">60</span> -a <span style="color:#FF0000;">"$i"</span> -gt <span style="color:#CC66CC;color:#800000;">30</span> <span style="color:#006600; font-weight:bold;">&#93;</span> &amp;amp;&amp;amp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"Uhh ala mitad..."</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span> <span style="color:#FF0000;">"$i"</span> -gt <span style="color:#CC66CC;color:#800000;">60</span> <span style="color:#006600; font-weight:bold;">&#93;</span> &amp;amp;&amp;amp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"Termina u,u"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/sleep"><span style="color:#000066;">sleep</span></a> <span style="color:#CC66CC;color:#800000;">0</span>.<span style="color:#CC66CC;color:#800000;">3</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">done;</div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> ready</div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p style="text-align: center;"><a href="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-172.png" rel="lightbox[416]"><img class="size-medium wp-image-423 aligncenter" title="Barra " src="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-172-300x122.png" alt="Partes de la barra" width="300" height="122" /></a>[code: <a href="http://works.bucio.com.mx/code/~gnu~Linux/Bash/gtkdialog/progresobarter.sh">progresobarter.sh</a>]</p>
<p>Hagamos lago más rapido y que se sobreponga, en esté caso al comando date, que muestra la fecha..o el comando que quieras.. como dicen los españoles, "os dejo a vuestra imaginación":</p>
<div class="igBar"><span id="lphp-8"><a href="#" onclick="javascript:showCodeTxt('php-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-8">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000; font-style:italic;">#! /usr/bin/gtkdialog -e</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> progress<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">for</span> i in $<span style="color:#006600; font-weight:bold;">&#40;</span>seq <span style="color:#CC66CC;color:#800000;">0</span> <span style="color:#CC66CC;color:#800000;">10</span> <span style="color:#CC66CC;color:#800000;">100</span><span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#616100;">do</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#0000FF;">$i</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span> <span style="color:#FF0000;">"$i"</span> -le <span style="color:#CC66CC;color:#800000;">30</span> <span style="color:#006600; font-weight:bold;">&#93;</span> &amp;amp;&amp;amp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"Empieza"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span> <span style="color:#FF0000;">"$i"</span> -le <span style="color:#CC66CC;color:#800000;">60</span> -a <span style="color:#FF0000;">"$i"</span> -gt <span style="color:#CC66CC;color:#800000;">30</span> <span style="color:#006600; font-weight:bold;">&#93;</span> &amp;amp;&amp;amp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"ya casi"</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span> <span style="color:#FF0000;">"$i"</span> -gt <span style="color:#CC66CC;color:#800000;">60</span> <span style="color:#006600; font-weight:bold;">&#93;</span> &amp;amp;&amp;amp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"Fin"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/sleep"><span style="color:#000066;">sleep</span></a> <span style="color:#CC66CC;color:#800000;">0</span>.<span style="color:#CC66CC;color:#800000;">3</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">done;</div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> ready</div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> progress_fast<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">for</span> i in $<span style="color:#006600; font-weight:bold;">&#40;</span>seq <span style="color:#CC66CC;color:#800000;">0</span> <span style="color:#CC66CC;color:#800000;">1</span> <span style="color:#CC66CC;color:#800000;">10000</span><span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#616100;">do</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> $<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#40;</span>i/<span style="color:#CC66CC;color:#800000;">100</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span> <span style="color:#FF0000;">"$i"</span> -le <span style="color:#CC66CC;color:#800000;">3000</span> <span style="color:#006600; font-weight:bold;">&#93;</span> &amp;amp;&amp;amp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"1....."</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span> <span style="color:#FF0000;">"$i"</span> -le <span style="color:#CC66CC;color:#800000;">6000</span> -a <span style="color:#FF0000;">"$i"</span> -gt <span style="color:#CC66CC;color:#800000;">3000</span> <span style="color:#006600; font-weight:bold;">&#93;</span> &amp;amp;&amp;amp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"2...doshhh"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span> <span style="color:#FF0000;">"$i"</span> -gt <span style="color:#CC66CC;color:#800000;">6000</span> <span style="color:#006600; font-weight:bold;">&#93;</span> &amp;amp;&amp;amp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"fin .. <img src='http://bucio.com.mx/wp-content/plugins/smilies-themer/adiumicons/pinched.png' alt='xD' class='wp-smiley' /> rapisimo"</span></div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000; font-style:italic;">#sleep 0.1</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">done;</div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> ready</div>
</li>
<li style="font-weight: bold;color:#5E5D5D;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p style="text-align: center;"><a href="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-173.png" rel="lightbox[416]"><img class="alignnone size-medium wp-image-426" title="Progresooo" src="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-173-300x122.png" alt="Progresooo" width="300" height="122" /></a><br />
[code:  <a href="http://works.bucio.com.mx/code/~gnu~Linux/Bash/gtkdialog/progresobartest.sh">progresobartest.sh</a> ]</p>
<h2>SIGUIENTE POST <a href="http://bucio.com.mx/2009/03/gtkdialog-iv/">GTDIALOG IV</a></h2>
]]></content:encoded>
			<wfw:commentRss>http://bucio.com.mx/2009/03/gtkdialog-iii/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>GtkDialog</title>
		<link>http://bucio.com.mx/2009/03/gtkdialog-ii/</link>
		<comments>http://bucio.com.mx/2009/03/gtkdialog-ii/#comments</comments>
		<pubDate>Sun, 15 Mar 2009 07:08:15 +0000</pubDate>
		<dc:creator>Rafael Bucio</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Programación]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[gtkdialog]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://bucio.com.mx/?p=392</guid>
		<description><![CDATA[Continuación de : INTRO GTKDIALOG Siguiendo con gtkDialog, ya hemos aprendido lo básico, como llamarlo, ejecutarlo y hasta su integración con en lenguaje C, ahora veremos los widgets, ya que Gtkdialog es una lenguaje de descripción XML, es capas de denotar capaz de denotar cualquier complejo de dialogo que contienen las cajas y los widgets [...]]]></description>
			<content:encoded><![CDATA[<p>Continuación de :</p>
<h2><span style="color: #ff0000;"><a href="http://bucio.com.mx/2009/03/gtkdialog/">INTRO GTKDIALOG</a></span></h2>
<p>Siguiendo con gtkDialog, ya hemos aprendido lo básico, como llamarlo, ejecutarlo y hasta su integración con en lenguaje C, ahora veremos los widgets, ya que Gtkdialog es una lenguaje de descripción XML, es capas de denotar capaz de denotar cualquier complejo de dialogo que contienen las cajas y los widgets estos son los botones, campos de entradas, listas y otras cosas, que veremos, como la mayoría de los comandos esté tiene atributos (nota Acciones:: ), creo que es esté caso sería como en la mayoría de los lenguajes jeje, pero parecen más comandos, se agrupa junto con los contenedores (nota Contenedores::), de cabeza acostados como quieran, cajas todo debe estar en su respectivo contenedor, los widgets no pueden estar solo es peligroso para el exterior, o algo así dice el tuto jaja.</p>
<p>Bueno en los ejemplos anteriores solo vimos como se creaban botones con los labels también podemos poner algo de texto, claro es XML, negritas, cursivas :-)..</p>
<p style="text-align: center;"><a title="Atributos" href="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-148.png" rel="lightbox[392]"><img class="size-medium wp-image-393 aligncenter" title="Prueba de Labels" src="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-148-300x165.png" alt="" width="300" height="165" /><br />
</a>[code: <a href="http://works.bucio.com.mx/code/~gnu~Linux/Bash/gtkdialog/texto_atributos.sh">texo_atributos.sh</a>]</p>
<p>Aquí no hay mucho que explicar ya que es bastante explicito:<code><br />
</code></p>
<pre class="screen"><span style="color: #003366;">&lt;text</span> atributo atributo2&gt;
    <span style="color: #003366;">&lt;label&gt;</span><span style="color: #ff0000;">"</span><span style="color: #333399;">&lt;b&gt;</span>Negritas<span style="color: #333399;">&lt;/b&gt; <span style="color: #000000;">texto <img src='http://bucio.com.mx/wp-content/plugins/smilies-themer/adiumicons/pinched.png' alt='xD' class='wp-smiley' /> </span> </span><span style="color: #ff0000;">"</span><span style="color: #003366;">&lt;/label&gt;</span>
  <span style="color: #000080;">&lt;/text&gt;</span></pre>
<p><strong>Archivos de entrada:</strong></p>
<p>También tenemos esto, se define con el,<code>&lt;input file&gt;&lt;/input&gt;,</code> y puede ser declarado dentro de su contenedor que tipo de archivo abriremos ya sea una imagen o archivo hasta un comando ¡¡ (Todo lo que se puede hacer wowo):</p>
<p style="text-align: center;"><a title="Ejemplo input" href="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-149.png" rel="lightbox[392]"><img class="size-medium wp-image-394 aligncenter" title="Input :-D Archivos comandos e imagen" src="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-149-300x166.png" alt="Input :-D Archivos comandos e imagen" width="300" height="166" /></a>[code: <a href="http://works.bucio.com.mx/code/~gnu~Linux/Bash/gtkdialog/input.sh">input.sh</a>]</p>
<p style="text-align: left;">Es sencillo aprendiendo como es la estructura:</p>
<p style="text-align: left;"><code>&lt;<span style="color: #000080;">frame</span> Aqui Pondríamos el titulo del frame&gt;<br />
&lt;<span style="color: #000080;">text</span>&gt; &lt;-- Que es lo que queremos en esté caso un archivo que contiene texto o img (<span style="color: #000080;"><strong>pixmap</strong></span>)<br />
&lt;<span style="color: #000080;">label</span>&gt;TEXTO ESTATICO OHO OHHH&lt;/<span style="color: #000080;">label</span>&gt; &lt;-- por si las dudas<br />
&lt;<span style="color: #000080;">input</span> <strong><span style="color: #000080;">file</span></strong>&gt;/tmp/log&lt;/<span style="color: #000080;">input</span>&gt; &lt;-- abrimos Archivo o comando</code></p>
<p>&lt;/<span style="color: #000080;">text</span>&gt;</p>
<p>&lt;/<span style="color: #000080;">frame</span>&gt;</p>
<p>Los botones, son simplemente <span style="color: #0000ff;">&lt;button ok&gt;</span><span style="color: #003300;">&lt;action&gt;</span>echo Presionaste Ok<span style="color: #003300;">&lt;/action&gt;</span><span style="color: #0000ff;">&lt;/button&gt;</span>, algunos botones predefinidos son:</p>
<div class="itemizedlist">
<ul type="disc">
<li> <span class="emphasis"><em>'<span style="color: #800000;">&lt;button ok&gt;&lt;/button&gt;'</span></em></span></li>
<li> <span style="color: #800000;"><span class="emphasis"><em>'&lt;button cancel&gt;&lt;/button&gt;'</em></span></span></li>
<li> <span style="color: #800000;"><span class="emphasis"><em>'&lt;button help&gt;&lt;/button&gt;'</em></span></span></li>
<li> <span style="color: #800000;"><span class="emphasis"><em>'&lt;button yes&gt;&lt;/button&gt;'</em></span></span></li>
<li> <span style="color: #800000;"><span class="emphasis"><em>'&lt;button no&gt;&lt;/button&gt;'</em></span></span></li>
</ul>
<p><a href="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-160.png" rel="lightbox[392]"></a></div>
<p style="text-align: center;"><a title="button" href="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-160.png" rel="lightbox[392]"><img class="alignnone size-medium wp-image-410" title="Botones" src="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-160-300x172.png" alt="Botones" width="300" height="172" /></a></p>
<p style="text-align: center;">[code: <a href="http://works.bucio.com.mx/code/~gnu~Linux/Bash/gtkdialog/button.sh">button.sh</a>]</p>
<h2 style="text-align: left;"><a href="http://bucio.com.mx/2009/03/gtkdialog-iii/">Siguiente Tema</a></h2>
]]></content:encoded>
			<wfw:commentRss>http://bucio.com.mx/2009/03/gtkdialog-ii/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>GtkDialog</title>
		<link>http://bucio.com.mx/2009/03/gtkdialog/</link>
		<comments>http://bucio.com.mx/2009/03/gtkdialog/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 10:34:19 +0000</pubDate>
		<dc:creator>Rafael Bucio</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Programación]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[gtkdialog]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://bucio.com.mx/?p=379</guid>
		<description><![CDATA[GtkDialog Hace tiempo miguex, creador y desarrollador de IkimLinux, me comento sobre esto, yo solo jugaba con zenity, los motivos tenía un gusto por esté comando, tiene una apariencia menos amigable para el usuario, aparte esté comando es con uno de los que empecé a crear mis ventanitas. con GtkDialog, es diferente tiene mejor look, [...]]]></description>
			<content:encoded><![CDATA[<h2 id="result_box" style="text-align: center;" dir="ltr">GtkDialog <img src='http://bucio.com.mx/wp-content/plugins/smilies-themer/adiumicons/happy.png' alt=':-)' class='wp-smiley' /> </h2>
<div dir="ltr">Hace tiempo miguex, creador y desarrollador de <a href="http://ikimlinux.net" target="_blank">IkimLinux</a>, me comento sobre esto, yo solo jugaba con <a href="http://library.gnome.org/users/zenity/stable/index.html.es" target="_blank">zenity</a>, los motivos tenía un gusto por esté comando, tiene una apariencia menos amigable para el usuario, aparte esté comando es con uno de los que empecé a crear mis ventanitas. con <a href="http://library.gnome.org/devel/gtk/unstable/GtkDialog.html">GtkDialog</a>, es diferente tiene mejor look, y puedo usar frames, botones etc.. :). Aunque <a href="http://library.gnome.org/users/zenity/stable/index.html.es" target="_blank">zenity</a>, también puede usar opciones de <a href="http://library.gnome.org/users/zenity/stable/zenity-usage.html.es#zenity-gtk-options" target="_blank">GTK+</a>, le di un chanceé a gtkDialog, y tenía ganas de hacer una especie de Tutorial para esto, espero terminarlo :-).</div>
<div dir="ltr">Esta basada en una Librería <a title="Tutorial" href="http://library.gnome.org/devel/gtk-tutorial/stable/" target="_blank">GTK+</a>, Se puede utilizar para crear cuadros de diálogo de casi todos los programas compilados e interpretados y que es una característica muy atractiva ya que el desarrollador no tiene que aprender diferentes idiomas para la interfaz gráfica diversos lenguajes de programación.</div>
<div dir="ltr">Empezare con un event-driven en bash, es sencillo hacer estos eventos-impulsados para bash, declarando en la primeras lineas una llamada a gtkdialog con la función<code> -e</code> esto tiene que ser construido usando  funciones y las descripciones de diálogo (como las variables de entorno), después le sigue <code>MAIN_DIALOG</code>,  Este es como la función <code>main()</code> de C.</div>
<p style="text-align: center;"><a href="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-141.png" rel="lightbox[379]"><img class="size-medium wp-image-381 aligncenter" title="FuncionImprimir" src="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-141-300x206.png" alt="FuncionImprimir" width="300" height="206" /></a></p>
<p>También se pueden correr scripts en <a title="Awk" href="http://lowfatlinux.com/linux-awk.html" target="_blank">AWK</a>, usando <code>#! /usr/bin/awk -f</code>, y podemos usar también C:</p>
<p style="text-align: left;"><a href="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-142.png" rel="lightbox[379]"><img class="size-medium wp-image-382 aligncenter" title="Uando C y compilando" src="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-142-300x157.png" alt="Uando C y compilando" width="300" height="157" /></a></p>
<p style="text-align: center;">[Codigo: <a href="http://works.bucio.com.mx/code/~gnu~Linux/Bash/gtkdialog/gdialog.c">gdialog.c</a> - <a href="http://works.bucio.com.mx/code/~gnu~Linux/Bash/gtkdialog/gdialog">binario</a> ]</p>
<p style="text-align: left;">Yo uso komodo, pero para cuando usen C, les recomiendo geany u otro. Que nos facilite la compilación y la ejecución de esté. jeje dejando los compiladores nos vamos, a  los comandos, con gtkDialog.</p>
<p style="text-align: left;">Creando nuestro primer hola mundo, en un script en bash, usando la librería de gtkDialog:</p>
<p style="text-align: center;"><a href="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-143.png" rel="lightbox[379]"><img class="size-medium wp-image-383 aligncenter" title="PrimerScript" src="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-143-300x202.png" alt="PrimerScript" width="300" height="202" /></a>[Código: <a href="http://works.bucio.com.mx/code/~gnu~Linux/Bash/gtkdialog/1.sh">1.sh</a>]</p>
<p><code>#! /bin/bash<br />
export MAIN_DIALOG='<br />
&lt;vbox&gt;<br />
&lt;text&gt;<br />
<span style="color: #000080;"> &lt;label&gt;</span>Hola Mundo Cruel<span style="color: #000080;">&lt;/label&gt;</span><br />
&lt;/text&gt;<br />
&lt;/vbox&gt;'<br />
gtkdialog --program MAIN_DIALOG <span style="color: #808080;"># Desde aquí llamamos GtkDialog &amp; Main</span></code></p>
<p>Muy sencillo no?, ahora un ejemplo de cuando necesitamos llamar enviar el estado de los widgets a la salida estándar al salir y así es como podemos obtener la entrada del usuario para el programa de BASH, sería una epecie de comando <code>READ</code>, algo así como guardar una variable flotante, pero en esté caso tenemos unos botones, Los cuales almacenan la información después de esté pasa por un for, el cual contiene <code>IFS</code>, esto nos sive para protejer los caracteres de los espacios, después de esto, sigue un pequeño if, el cual nos manda a imprimir lo que pusimos dentro del campo:</p>
<p style="text-align: center;"><a href="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-145.png" rel="lightbox[379]"><img class="size-medium wp-image-384 aligncenter" title="Leyendo variables y procediendo IFS" src="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-145-300x247.png" alt="Leyendo variables y procediendo IFS" width="300" height="247" /></a>[Código: <a href="http://works.bucio.com.mx/code/~gnu~Linux/Bash/gtkdialog/2.sh">2.sh</a>]</p>
<p>Existe, Otra forma cuando son programas grandes de llamar a gtkDialog, una buena idea para romper el código de los archivos separados y se le es más fácil leer a gtkdialog. Al usar esto podemos obtener a partir de la salida estándar de la secuencia de comandos como por lo general.</p>
<p style="text-align: center;"><a href="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-146.png" rel="lightbox[379]"><img class="size-medium wp-image-385 aligncenter" title="/usr/bin/gtkdialog -f" src="http://bucio.com.mx/wp-content/uploads/2009/03/pantallazo-146-300x248.png" alt="/usr/bin/gtkdialog -f" width="300" height="248" /></a>#! /local/bin/gtkdialog -f<br />
[Código: <a href="http://works.bucio.com.mx/code/~gnu~Linux/Bash/gtkdialog/3.sh">3.sh</a>]</p>
<p style="text-align: left;">Esto sería lo primero que aprenderíamos, al usar un lenguaje de programación o algo parecido, en esté caso GtkDialog.<br />
Un saludo a <a title="blog personal de Jainux" href="http://jainux.net" target="_blank"></a><a href="http://twitter.com/Jainux">@</a>jainuX, que se desvelo esté domingo conmigo :-).</p>
<h1><span style="color: #ff0000;"><a href="http://bucio.com.mx/2009/03/gtkdialog-ii/">Siguiente Tema...</a><br />
</span></h1>
]]></content:encoded>
			<wfw:commentRss>http://bucio.com.mx/2009/03/gtkdialog/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Me cambio de casa :-)</title>
		<link>http://bucio.com.mx/2009/01/me-cambio-de-casa/</link>
		<comments>http://bucio.com.mx/2009/01/me-cambio-de-casa/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 01:59:31 +0000</pubDate>
		<dc:creator>Rafael Bucio</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[me]]></category>

		<guid isPermaLink="false">http://bucio.com.mx/2009/01/me-cambio-de-casa/</guid>
		<description><![CDATA[bucio:~# mke2fs -j /home/buchihouse bucio:~# cp -arf /home/buchicueva/* /home/buchihouse bucio:~# cd /home/buchihouse;cat /etc/issue.net Laureles 1 calle. Chabacano 19- eva:/home/bucio# figlet Los espero _ &#124; &#124; ___ ___ ___ ___ _ __ ___ _ __ ___ &#124; &#124; / _ \/ __&#124; / _ \/ __&#124; '_ \ / _ \ '__/ _ \ &#124; &#124;__&#124; [...]]]></description>
			<content:encoded><![CDATA[<pre class="brush:bash">bucio:~# mke2fs -j /home/buchihouse
bucio:~# cp -arf /home/buchicueva/* /home/buchihouse
bucio:~# cd /home/buchihouse;cat /etc/issue.net
Laureles 1 calle. Chabacano 19-
eva:/home/bucio# figlet Los espero
_
| |    ___  ___    ___  ___ _ __   ___ _ __ ___
| |   / _ \/ __|  / _ \/ __| '_ \ / _ \ '__/ _ \
| |__| (_) \__ \ |  __/\__ \ |_) |  __/ | | (_) |
|_____\___/|___/  \___||___/ .__/ \___|_|  \___/
|_|
eva:/home/bucio#
</pre>
]]></content:encoded>
			<wfw:commentRss>http://bucio.com.mx/2009/01/me-cambio-de-casa/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>
