<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://familien-hartvig.dk/wiki/index.php?action=history&amp;feed=atom&amp;title=ShellScripts</id>
	<title>ShellScripts - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://familien-hartvig.dk/wiki/index.php?action=history&amp;feed=atom&amp;title=ShellScripts"/>
	<link rel="alternate" type="text/html" href="http://familien-hartvig.dk/wiki/index.php?title=ShellScripts&amp;action=history"/>
	<updated>2026-06-16T23:00:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.15</generator>
	<entry>
		<id>http://familien-hartvig.dk/wiki/index.php?title=ShellScripts&amp;diff=417&amp;oldid=prev</id>
		<title>Lars: Protected &quot;ShellScripts&quot; ([edit=sysop] (indefinite) [move=sysop] (indefinite)) [cascading]</title>
		<link rel="alternate" type="text/html" href="http://familien-hartvig.dk/wiki/index.php?title=ShellScripts&amp;diff=417&amp;oldid=prev"/>
		<updated>2012-02-22T18:58:30Z</updated>

		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/wiki/index.php?title=ShellScripts&quot; title=&quot;ShellScripts&quot;&gt;ShellScripts&lt;/a&gt;&amp;quot; ([edit=sysop] (indefinite) [move=sysop] (indefinite)) [cascading]&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 18:58, 22 February 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Lars</name></author>
		
	</entry>
	<entry>
		<id>http://familien-hartvig.dk/wiki/index.php?title=ShellScripts&amp;diff=78&amp;oldid=prev</id>
		<title>Lars: Created page with &quot;== What is CGI ? == CGI/1.1  The Common Gateway Interface (CGI) is a standard for interfacing external applications with information servers, such as HTTP or Web servers. A pl...&quot;</title>
		<link rel="alternate" type="text/html" href="http://familien-hartvig.dk/wiki/index.php?title=ShellScripts&amp;diff=78&amp;oldid=prev"/>
		<updated>2012-02-03T09:09:32Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== What is CGI ? == CGI/1.1  The Common Gateway Interface (CGI) is a standard for interfacing external applications with information servers, such as HTTP or Web servers. A pl...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== What is CGI ? ==&lt;br /&gt;
CGI/1.1&lt;br /&gt;
&lt;br /&gt;
The Common Gateway Interface (CGI) is a standard for interfacing external applications with information servers, such as HTTP or Web servers. A plain HTML document that the Web daemon retrieves is static, which means it exists in a constant state: a text file that doesn't change. A CGI program, on the other hand, is executed in real-time, so that it can output dynamic information.&lt;br /&gt;
&lt;br /&gt;
*Read more about CGI [http://hoohoo.ncsa.uiuc.edu/cgi/ here]&lt;br /&gt;
*And the Wiki pages [http://en.wikipedia.org/wiki/Common_Gateway_Interface here]&lt;br /&gt;
&lt;br /&gt;
== CGI scripting ==&lt;br /&gt;
Always start your CGI script, with the following 3 lines.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/hush&lt;br /&gt;
echo Content-type: text/html&lt;br /&gt;
echo&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Switching KiSS to audio out and power on ==&lt;br /&gt;
&lt;br /&gt;
tisiman has started a project about Switching KiSS to oudio out and power on for trying to change to audio multiplexer from Scart2-&amp;gt;Scart1 (standby mode) to Kiss-&amp;gt;Scart1 (Operating mode).&lt;br /&gt;
&lt;br /&gt;
*[http://www.mpcclub.com/modules.php?name=Forums&amp;amp;file=viewtopic&amp;amp;t=6184 Discussion]&lt;br /&gt;
&lt;br /&gt;
'''Missing code'''&lt;br /&gt;
&lt;br /&gt;
== CGI scrips about playlists ==&lt;br /&gt;
&lt;br /&gt;
mhd has started a project about playlists&lt;br /&gt;
&lt;br /&gt;
*[http://www.mpcclub.com/modules.php?name=Forums&amp;amp;file=viewtopic&amp;amp;t=6199 Discussion]&lt;br /&gt;
*[http://www.research-service.com/custom-term-paper.html term papers]&lt;br /&gt;
&lt;br /&gt;
'''Missing code'''&lt;br /&gt;
&lt;br /&gt;
== CGI-Scripts for martinb-fw 1.1.4 (Backup/Restore) ==&lt;br /&gt;
&lt;br /&gt;
PatPowerMan has started a project about a Backup/restore script for Stage2.&lt;br /&gt;
&lt;br /&gt;
*[http://www.mpcclub.com/modules.php?name=Forums&amp;amp;file=viewtopic&amp;amp;t=6052 Discussion]&lt;br /&gt;
&lt;br /&gt;
'''Do we have this code Martin?'''&lt;br /&gt;
&lt;br /&gt;
== MediaPlayer ==&lt;br /&gt;
&lt;br /&gt;
We can start the MediaPlayer with a cgi script.&lt;br /&gt;
# Command to execute is: &amp;quot;MediaPlayer MP3 /hdd/audio/test.mp3&amp;quot;&lt;br /&gt;
# Other commands can be:&lt;br /&gt;
## &amp;quot;MediaPlayer VOB /hdd/pvr/test.vob&amp;quot;&lt;br /&gt;
## &amp;quot;MediaPlayer AVI PCLINK1:192.168.20.1:8000:/kissroot/film.vob&amp;quot;&lt;br /&gt;
## &amp;quot;MediaPlayer SHT icecast://64.236.34.4:80/stream/2009&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Weather example script (justy090)==&lt;br /&gt;
&lt;br /&gt;
Read [http://www.mpcclub.com/modules.php?name=Forums&amp;amp;file=viewtopic&amp;amp;t=11207 here] for more info about this script,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/hush &lt;br /&gt;
# &lt;br /&gt;
echo Content-type: text/html &lt;br /&gt;
echo &lt;br /&gt;
cd /hdd/stage2/htmlroot/kml/vreme/ &lt;br /&gt;
wget -O vreme.htm http://x4.x2.1x9.3/vremevsezani/ &lt;br /&gt;
sed -n '158,168p' vreme.htm &amp;gt; rrr.ttt &lt;br /&gt;
rm clear.txt &lt;br /&gt;
echo -n &amp;quot;Datum:&amp;quot; &amp;gt;&amp;gt; clear.txt | grep Datum rrr.ttt | ./cut -d &amp;quot;&amp;gt;&amp;quot; -f 5 | ./cut -d &amp;quot;&amp;lt;f1&amp;gt;&amp;gt; clear.txt &lt;br /&gt;
sleep 1 &lt;br /&gt;
klcd 1 &lt;br /&gt;
echo -n &amp;quot;Cas:&amp;quot; &amp;gt;&amp;gt; clear.txt | grep Datum rrr.ttt | ./cut -d &amp;quot;&amp;gt;&amp;quot; -f 9 | ./cut -d &amp;quot;&amp;lt;f1&amp;gt;&amp;gt; clear.txt &lt;br /&gt;
sleep 1 &lt;br /&gt;
klcd 2. &lt;br /&gt;
echo -n &amp;quot;Temperatura: &amp;quot; &amp;gt;&amp;gt; clear.txt | grep Temperatura rrr.ttt | ./cut -d &amp;quot;&amp;gt;&amp;quot; -f 4 | ./cut -d &amp;quot;&amp;lt;f1&amp;gt;&amp;gt; clear.txt &lt;br /&gt;
sleep 1 &lt;br /&gt;
klcd 3.. &lt;br /&gt;
echo -n &amp;quot;Vlaga: &amp;quot; &amp;gt;&amp;gt; clear.txt | grep Vlaga rrr.ttt | ./cut -d &amp;quot;&amp;gt;&amp;quot; -f 3 | ./cut -d &amp;quot;&amp;lt;f1&amp;gt;&amp;gt; clear.txt &lt;br /&gt;
sleep 1 &lt;br /&gt;
klcd 4... &lt;br /&gt;
echo -n &amp;quot;Rosisce: &amp;quot; &amp;gt;&amp;gt; clear.txt | grep Rosi rrr.ttt | ./cut -d &amp;quot;&amp;gt;&amp;quot; -f 3 | ./cut -d &amp;quot;&amp;lt;f1&amp;gt;&amp;gt; clear.txt &lt;br /&gt;
sleep 1 &lt;br /&gt;
klcd 5.... &lt;br /&gt;
cat /hdd/stage2/htmlroot/kml/vreme/ind2.htm &lt;br /&gt;
echo -n &amp;quot;Pritisk: &amp;quot; &amp;gt;&amp;gt; clear.txt | grep Pritisk rrr.ttt | ./cut -d &amp;quot;&amp;gt;&amp;quot; -f 2 | ./cut -d &amp;quot;&amp;lt;f1&amp;gt;&amp;gt; clear.txt &lt;br /&gt;
sleep 1 &lt;br /&gt;
klcd 6..... &lt;br /&gt;
echo -n &amp;quot;Obcutek mraza: &amp;quot; &amp;gt;&amp;gt; clear.txt | grep Ob rrr.ttt | ./cut -d &amp;quot;&amp;gt;&amp;quot; -f 3 | ./cut -d &amp;quot;&amp;lt;f1&amp;gt;&amp;gt; clear.txt &lt;br /&gt;
sleep 1 &lt;br /&gt;
klcd 7...... &lt;br /&gt;
echo -n &amp;quot;Veter: &amp;quot; &amp;gt;&amp;gt; clear.txt | grep Veter rrr.ttt | ./cut -d &amp;quot;&amp;gt;&amp;quot; -f 2 | ./cut -d &amp;quot;&amp;lt;f1&amp;gt;&amp;gt; clear.txt &lt;br /&gt;
sleep 1 &lt;br /&gt;
klcd 8....... &lt;br /&gt;
echo -n &amp;quot;Smer vetra: &amp;quot; &amp;gt;&amp;gt; clear.txt | grep Smer rrr.ttt | ./cut -d &amp;quot;&amp;gt;&amp;quot; -f 3 | ./cut -d &amp;quot;&amp;lt;f1&amp;gt;&amp;gt; clear.txt &lt;br /&gt;
sleep 1 &lt;br /&gt;
klcd 9........ &lt;br /&gt;
sed 's/°//g' clear.txt &amp;gt; source.txt &lt;br /&gt;
klcd 10........ &lt;br /&gt;
./txt2kml.cgi -t -i source.txt -u http://127.0.0.1/kml/index.htm -o index.htm &lt;br /&gt;
klcd 11........ &lt;br /&gt;
cat /hdd/stage2/htmlroot/kml/vreme/index.htm &lt;br /&gt;
exit &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lars</name></author>
		
	</entry>
</feed>