<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Linux Forum &mdash; Проблемка со скриптом]]></title>
		<link>https://linuxforum.ru/viewtopic.php?id=8890</link>
		<atom:link href="https://linuxforum.ru/extern.php?action=feed&amp;tid=8890&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Проблемка со скриптом».]]></description>
		<lastBuildDate>Sat, 04 Dec 2010 09:02:16 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Проблемка со скриптом]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=118719#p118719</link>
			<description><![CDATA[<p>Спасибо большое тебе</p>]]></description>
			<author><![CDATA[null@example.com (Kettler)]]></author>
			<pubDate>Sat, 04 Dec 2010 09:02:16 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=118719#p118719</guid>
		</item>
		<item>
			<title><![CDATA[Re: Проблемка со скриптом]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=118716#p118716</link>
			<description><![CDATA[<div class="quotebox"><cite>Kettler пишет:</cite><blockquote><p>/usr/local/bin/irw /dev/lircd | while read line; do<br />&nbsp; &nbsp; &nbsp; &nbsp; status=`echo $line|grep &quot;KEY_F4&quot;|grep -v grep`;<br />&nbsp; &nbsp; &nbsp; &nbsp; if [ &quot;$status&quot; != &quot;&quot; ]; then<br />&nbsp; &nbsp; &nbsp; &nbsp; switch;<br />&nbsp; &nbsp; &nbsp; &nbsp; fi;</p></blockquote></div><p>do есть, а<strong> done </strong> не вижу.</p>]]></description>
			<author><![CDATA[null@example.com (drBatty)]]></author>
			<pubDate>Sat, 04 Dec 2010 08:57:52 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=118716#p118716</guid>
		</item>
		<item>
			<title><![CDATA[Проблемка со скриптом]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=118711#p118711</link>
			<description><![CDATA[<p>#!/bin/bash</p><p>function switch()<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; STATUS=`pgrep -c xine`<br />&nbsp; &nbsp; &nbsp; &nbsp; if [ &quot;${STATUS}&quot; = &quot;1&quot;&nbsp; ]; then<br />&nbsp; &nbsp; &nbsp; &nbsp; kill -9 `ps aux |grep &#039;xine -V vdpau&#039; |awk &#039;{print $2}&#039;`<br />&nbsp; &nbsp; &nbsp; &nbsp; sleep 1<br />&nbsp; &nbsp; &nbsp; &nbsp; /home/xbmc.sh &amp;<br />&nbsp; &nbsp; &nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp; killall xbmc.bin<br />&nbsp; &nbsp; &nbsp; &nbsp; sleep 1<br />&nbsp; &nbsp; &nbsp; &nbsp; /home/vdr.sh &amp;<br />&nbsp; &nbsp; &nbsp; &nbsp; fi<br />}</p><br /><p>/usr/local/bin/irw /dev/lircd | while read line; do<br />&nbsp; &nbsp; &nbsp; &nbsp; status=`echo $line|grep &quot;KEY_F4&quot;|grep -v grep`;<br />&nbsp; &nbsp; &nbsp; &nbsp; if [ &quot;$status&quot; != &quot;&quot; ]; then<br />&nbsp; &nbsp; &nbsp; &nbsp; switch;<br />&nbsp; &nbsp; &nbsp; &nbsp; fi;</p><p>Вот такой скрипт при выполнении<br />switch.sh: строка 23: ошибка синтаксиса: неожиданный конец файла</p><p>Благодарен буду за любую помощь так сам в этом не силён</p>]]></description>
			<author><![CDATA[null@example.com (Kettler)]]></author>
			<pubDate>Sat, 04 Dec 2010 08:40:34 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=118711#p118711</guid>
		</item>
	</channel>
</rss>
