<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Проблемка со скриптом]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=8890&amp;type=atom" />
	<updated>2010-12-04T09:02:16Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=8890</id>
		<entry>
			<title type="html"><![CDATA[Re: Проблемка со скриптом]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=118719#p118719" />
			<content type="html"><![CDATA[<p>Спасибо большое тебе</p>]]></content>
			<author>
				<name><![CDATA[Kettler]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11719</uri>
			</author>
			<updated>2010-12-04T09:02:16Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=118719#p118719</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проблемка со скриптом]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=118716#p118716" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2010-12-04T08:57:52Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=118716#p118716</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Проблемка со скриптом]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=118711#p118711" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Kettler]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11719</uri>
			</author>
			<updated>2010-12-04T08:40:34Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=118711#p118711</id>
		</entry>
</feed>
