<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; screen + log]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=24097&amp;type=atom" />
	<updated>2012-09-04T06:12:07Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=24097</id>
		<entry>
			<title type="html"><![CDATA[Re: screen + log]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=296947#p296947" />
			<content type="html"><![CDATA[<p>А ещё можно запускать программы внутри скрина так:<br />foo | tee file.log<br />И весь вывод будет копироваться в файл. А его уже можно грепать, парсить и т.п.</p>]]></content>
			<author>
				<name><![CDATA[Vascom]]></name>
				<uri>https://linuxforum.ru/profile.php?id=5339</uri>
			</author>
			<updated>2012-09-04T06:12:07Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=296947#p296947</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: screen + log]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=296915#p296915" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Lupo Alberto пишет:</cite><blockquote><div class="quotebox"><cite>Kettler пишет:</cite><blockquote><p>Вроде конфиги cs прекрасно настраиваются на логирование.</p></blockquote></div><p>В целом согласен, но, если по теме:<br /></p><div class="codebox"><pre><code>screen -L</code></pre></div><p>либо в уже запущенном сеансе набрать <strong>Ctrl + a</strong>, затем <strong>H</strong></p><p>Лог пишется в текущий каталог. В настройках можно указать, куда писать логи.<br />P.S. В этих логах, особенно если запускались приложения с ncurses-интерфейсом, сам чёрт голову сломит.</p></blockquote></div><p>потестим</p>]]></content>
			<author>
				<name><![CDATA[Rassol2]]></name>
				<uri>https://linuxforum.ru/profile.php?id=15167</uri>
			</author>
			<updated>2012-09-03T20:54:06Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=296915#p296915</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: screen + log]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=296634#p296634" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Kettler пишет:</cite><blockquote><p>Вроде конфиги cs прекрасно настраиваются на логирование.</p></blockquote></div><p>В целом согласен, но, если по теме:<br /></p><div class="codebox"><pre><code>screen -L</code></pre></div><p>либо в уже запущенном сеансе набрать <strong>Ctrl + a</strong>, затем <strong>H</strong></p><p>Лог пишется в текущий каталог. В настройках можно указать, куда писать логи.<br />P.S. В этих логах, особенно если запускались приложения с ncurses-интерфейсом, сам чёрт голову сломит.</p>]]></content>
			<author>
				<name><![CDATA[Lupo Alberto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9018</uri>
			</author>
			<updated>2012-09-01T13:36:59Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=296634#p296634</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: screen + log]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=296632#p296632" />
			<content type="html"><![CDATA[<p>а зачем вообще screen ?</p><br /><div class="codebox"><pre><code>xxx@xxx:~# cat /etc/init.d/hl
#!/bin/bash 

RETVAL=0 

path=&quot;/home/xxx/games/hlds&quot;

start() { 
if [ -d $path ]; then 
cd $path 
./hlds_run -game cstrike -nomaster +map de_dust2 +port 27015 -maxplayers 24 +mp_freezetime 3 +exec server.cfg -pingboost 1 +sys_ticrate 10000 +sv_maxupdaterate 100 &gt; /dev/null 2&gt;&amp;1 &amp; 
touch ./cstrike.run 
fi 
} 

stop() { 
if [ -f $path/cstrike.run ]; then 
killall hlds_run 
killall hlds_amd 
cd $path 
rm -R ./cstrike.run 
fi 
} 



case &quot;$1&quot; in 
start) 
start 
echo &quot;CS Server-1 starting&quot; 
;; 
stop) 
stop 
echo &quot;CS Server-1 stoping&quot; 
;; 
restart) 
stop 
start 
;; 
*) 
echo $&quot;Usage: $0 {start|stop|restart}&quot; 
exit 1 
esac 

exit $RETVAL  </code></pre></div><p>Вроде конфиги cs прекрасно настраиваются на логирование.</p>]]></content>
			<author>
				<name><![CDATA[Kettler]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11719</uri>
			</author>
			<updated>2012-09-01T13:23:16Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=296632#p296632</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[screen + log]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=296630#p296630" />
			<content type="html"><![CDATA[<p>Я запускаю в скрине игровой сервер cs 1.6<br />Игровой сервер запускается от своего юзера<br />Что бы просмотреть что в консоли сервера ввожу <strong>screen -x user </strong><br />Как бы постоянно смотреть в консоль не хочется но там временами много нужной информации проходит, которую было бы неплохо посмотреть. </p><p>Задача такова сделать что бы писался лог всего что происходит в screen тока как это сделать пока что не могу догнать.</p>]]></content>
			<author>
				<name><![CDATA[Rassol2]]></name>
				<uri>https://linuxforum.ru/profile.php?id=15167</uri>
			</author>
			<updated>2012-09-01T13:12:35Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=296630#p296630</id>
		</entry>
</feed>
