<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Comments for page &quot;100 lines of BASH script that simply rock!&quot;</title>
		<link>http://piotr.gabryjeluk.pl/www-server-in-100-lines-bash-script/comments/show</link>
		<description></description>
				<copyright></copyright>
		<lastBuildDate>Fri, 03 Sep 2010 03:45:06 +0000</lastBuildDate>
		
					<item>
				<guid>http://piotr.gabryjeluk.pl/www-server-in-100-lines-bash-script/comments/show#post-858188</guid>
				<title>(no title)</title>
				<link>http://piotr.gabryjeluk.pl/www-server-in-100-lines-bash-script/comments/show#post-858188</link>
				<description></description>
				<pubDate>Thu, 26 Aug 2010 14:40:39 +0000</pubDate>
				<wikidot:authorName>Gabrys</wikidot:authorName>				<wikidot:authorUserId>2462</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Yes, some versions of netcat use "-l" instead of "-l -p". Others just the opposite.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://piotr.gabryjeluk.pl/www-server-in-100-lines-bash-script/comments/show#post-858178</guid>
				<title>Ubuntu 10.04 patch</title>
				<link>http://piotr.gabryjeluk.pl/www-server-in-100-lines-bash-script/comments/show#post-858178</link>
				<description></description>
				<pubDate>Thu, 26 Aug 2010 14:29:44 +0000</pubDate>
				<wikidot:authorName>Erdem Guven</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <div class="code"> <pre> <code>--- /tmp/sil.sh 2010-08-26 15:26:26.947272063 +0100 +++ /home/erdem/bin/bash_http_server.sh 2010-08-26 15:23:45.663270941 +0100 @@ -60,7 +60,7 @@ while debug INFO Running nc; do - nc -l -p "$port" &lt; "$sin" &gt; "$sout" &amp; + nc -l "$port" &lt; "$sin" &gt; "$sout" &amp; pid="$!" debug INFO Server PID: "$pid" @@ -79,6 +79,7 @@ function cleanup { debug INFO Caught signal, quitting... + kill "$pid" rm -Rf "$tmp_dir" exit }</code> </pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://piotr.gabryjeluk.pl/www-server-in-100-lines-bash-script/comments/show#post-393769</guid>
				<title>bash with its ini to maintain server</title>
				<link>http://piotr.gabryjeluk.pl/www-server-in-100-lines-bash-script/comments/show#post-393769</link>
				<description></description>
				<pubDate>Mon, 23 Feb 2009 11:56:28 +0000</pubDate>
				<wikidot:authorName>namzezam</wikidot:authorName>				<wikidot:authorUserId>6315</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>i would like to develop a bash for controlling all about a server (nginx,fastsgi, php mysql) including their ini etc, where this bash goes with its ini ( see more here <a href="http://ajdiaz.wordpress.com/2008/02/09/bash-ini-parser/">http://ajdiaz.wordpress.com/2008/02/09/bash-ini-parser/</a> )</p> <p>i hope to work on it with any one of you in a gpl and/or a comcom mode and about the latter please see my site in comcom.wikidot.com or iswith.info</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://piotr.gabryjeluk.pl/www-server-in-100-lines-bash-script/comments/show#post-238919</guid>
				<title>lepsze wykrywanie typu mime</title>
				<link>http://piotr.gabryjeluk.pl/www-server-in-100-lines-bash-script/comments/show#post-238919</link>
				<description></description>
				<pubDate>Tue, 12 Aug 2008 20:02:48 +0000</pubDate>
				<wikidot:authorName>rad</wikidot:authorName>				<wikidot:authorUserId>5300</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Anonymous (82.210.179.178) trzy posty wyżej zaproponował takie wykrywanie mime</p> <blockquote> <p>`file -i "$file" | cut -d " " -f 2-`</p> </blockquote> <p>można znacznie to uprościć i nie bawić się w cut'owanie wyjścia file, wystarczy dodać opcję b ;) nie wyświetli tego co wycinasz<br /> <tt>file -i -b $filename</tt><br /> przykład<br /> <tt>rad@ubuntu:~/tmp$ file -i -b 11.jpg<br /> image/jpeg</tt></p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://piotr.gabryjeluk.pl/www-server-in-100-lines-bash-script/comments/show#post-161375</guid>
				<title>php, cgi...</title>
				<link>http://piotr.gabryjeluk.pl/www-server-in-100-lines-bash-script/comments/show#post-161375</link>
				<description></description>
				<pubDate>Sun, 11 May 2008 07:18:54 +0000</pubDate>
				<wikidot:authorName>Anonymous</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>CGI czy PHP w trybie CGI mozna do tego typu serwerka dopisac w kolejnych kilku linijkach. serio. :)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://piotr.gabryjeluk.pl/www-server-in-100-lines-bash-script/comments/show#post-161363</guid>
				<title>:&gt;</title>
				<link>http://piotr.gabryjeluk.pl/www-server-in-100-lines-bash-script/comments/show#post-161363</link>
				<description></description>
				<pubDate>Sun, 11 May 2008 06:26:01 +0000</pubDate>
				<wikidot:authorName>Anonymous</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>A gdzie PHP? :)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://piotr.gabryjeluk.pl/www-server-in-100-lines-bash-script/comments/show#post-161308</guid>
				<title>Content-type...</title>
				<link>http://piotr.gabryjeluk.pl/www-server-in-100-lines-bash-script/comments/show#post-161308</link>
				<description></description>
				<pubDate>Sat, 10 May 2008 23:42:38 +0000</pubDate>
				<wikidot:authorName>Anonymous</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>x-download-this ?</p> <p>Można lepiej:</p> <p>function serve_file {<br /> local file="‘fix_path "$1"`"<br /> echo ’HTTP/1.1&nbsp;200 OK'<br /> printf 'Content-type: %s' "`file -i "$file" | cut -d " " -f 2-`"<br /> echo<br /> debug INFO serving file "$file"<br /> cat "$file"<br /> }</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>