<?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=11967&amp;type=atom" />
	<updated>2011-03-19T07:58:54Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=11967</id>
		<entry>
			<title type="html"><![CDATA[Re: Проблема с кроном]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=158244#p158244" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>4fun пишет:</cite><blockquote><p>Спасибо всем за помощь. Дело было все-таки в том, что не оставлял чистую строку. Сейчас все норм.</p></blockquote></div><p>дело не в пустой строке.<br />вот файл:<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">$ cat f.txt <br />&quot;%06.6_ao &quot;&nbsp; 1/1 &quot;%01x &quot;<br />&quot;\n&quot; <br /></div><br />тут 2 строки<br />вот бинарный код:<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">$ xxd -c1 f.txt <br />0000000: 22&nbsp; &quot;<br />0000001: 25&nbsp; %<br />0000002: 30&nbsp; 0<br />0000003: 36&nbsp; 6<br />0000004: 2e&nbsp; .<br />0000005: 36&nbsp; 6<br />0000006: 5f&nbsp; _<br />0000007: 61&nbsp; a<br />0000008: 6f&nbsp; o<br />0000009: 20&nbsp; &nbsp;<br />000000a: 22&nbsp; &quot;<br />000000b: 20&nbsp; &nbsp;<br />000000c: 20&nbsp; &nbsp;<br />000000d: 31&nbsp; 1<br />000000e: 2f&nbsp; /<br />000000f: 31&nbsp; 1<br />0000010: 20&nbsp; &nbsp;<br />0000011: 22&nbsp; &quot;<br />0000012: 25&nbsp; %<br />0000013: 30&nbsp; 0<br />0000014: 31&nbsp; 1<br />0000015: 78&nbsp; x<br />0000016: 20&nbsp; &nbsp;<br />0000017: 22&nbsp; &quot;<br />0000018: 0a&nbsp; .<br />0000019: 22&nbsp; &quot;<br />000001a: 5c&nbsp; \<br />000001b: 6e&nbsp; n<br />000001c: 22&nbsp; &quot;<br />000001d: 20&nbsp; &nbsp;<br />000001e: 0a&nbsp; .<br /></div><br />видите, в конце обоих строк стоит 0a, это перевод строки. Если он не стоит в конце файла, то последняя строка == НЕСТРОКА. А НЕХ. Какие-то то левые байты в конце файла. Хвала гентушной crontab, что она хоть предупреждает об этом, ВСЕ другие программы, в частности crontab&#039;ы из других дистрибутивов, попросту игнорируют этот хвост. Такие дела...</p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2011-03-19T07:58:54Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=158244#p158244</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проблема с кроном]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=158133#p158133" />
			<content type="html"><![CDATA[<p>Спасибо всем за помощь. Дело было все-таки в том, что не оставлял чистую строку. Сейчас все норм.</p>]]></content>
			<author>
				<name><![CDATA[4fun]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16085</uri>
			</author>
			<updated>2011-03-18T18:07:04Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=158133#p158133</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проблема с кроном]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=158040#p158040" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>4fun пишет:</cite><blockquote><p>Почту прочел, как я понял, записаны выполнения задач крона.</p></blockquote></div><p>угу.</p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2011-03-18T13:20:26Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=158040#p158040</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проблема с кроном]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=158033#p158033" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>4fun пишет:</cite><blockquote><p>Не совсем понял, о какой пустой строке речь?</p></blockquote></div><p>Файл должен заканчиваться пустой строкой. После ввода последней строки нажмите «Enter» и сохранитесь.</p>]]></content>
			<author>
				<name><![CDATA[Lupo Alberto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9018</uri>
			</author>
			<updated>2011-03-18T13:06:59Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=158033#p158033</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проблема с кроном]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=158032#p158032" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>drBatty пишет:</cite><blockquote><div class="quotebox"><cite>4fun пишет:</cite><blockquote><p>Пользуюсь редактором mcedit</p></blockquote></div><p>вот как раз mcedit и НЕ работает. добавьте пустую строку!<br />почту почитайте</p></blockquote></div><p>Не совсем понял, о какой пустой строке речь? И ведь у друга работает с mcedit.<br />Почту прочел, как я понял, записаны выполнения задач крона.</p>]]></content>
			<author>
				<name><![CDATA[4fun]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16085</uri>
			</author>
			<updated>2011-03-18T13:04:43Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=158032#p158032</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проблема с кроном]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=158027#p158027" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>4fun пишет:</cite><blockquote><p>Пользуюсь редактором mcedit</p></blockquote></div><p>вот как раз mcedit и НЕ работает. добавьте пустую строку!<br /></p><div class="quotebox"><cite>4fun пишет:</cite><blockquote><p>Но со скриптом, думаю, все нормально, т.к. на одном сервере все прекрасно работает.</p></blockquote></div><p>почту почитайте<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh"># mutt</div></p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2011-03-18T12:59:05Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=158027#p158027</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проблема с кроном]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=158019#p158019" />
			<content type="html"><![CDATA[<p>Вот, собственно, задания<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p>00 4 * * 1-7 root reboot<br />15 4 * * 1-7 root /etc/init.d/proftpd start<br />00 16 * * 1-7 root /etc/init.d/network restart</p><p>*/5 * * * * root /etc/init.d/cs15d48 checker<br />*/5 * * * * root /etc/init.d/cs19d48 checker<br />*/5 * * * * root /etc/init.d/cs20d48 checker<br />#*/5 * * * * root /etc/init.d/cs23d48 checker</p><p>10 4 * * * root /etc/init.d/css05d48<br />10 4 * * * root /etc/init.d/css07d48</p></div></div><p>А вот содержание скрипта<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p>#!/bin/bash<br /># chkconfig: 2345 95 20<br /># description: HLDS Start Script<br /># Start HLDS Server<br /># processname: hlds<br /># author: LeXiKoN <a href="http://eqline.ru">http://eqline.ru</a><br /># version: 0.95</p><p># Source function library.<br />. /etc/rc.d/init.d/functions</p><p>VERSION=0.95</p><p>#####################################################<br /># Конфигурирование<br />#####################################################</p><p>SERVER_NAME=&quot;Server Name&quot; #Название сервера<br />screen_name=source&nbsp; #Название screen-сессии<br />path=&quot;/home/srcds/source&quot;&nbsp; #Путь до ROOT-директории сервера<br />hlds_ip=0.0.0.0&nbsp; # внешний IP сервера<br />hlds_port=27010&nbsp; #Порт сервера<br />hlds_gametype=left4dead2&nbsp; #Тип игры<br />hlds_players=8&nbsp; #Максимальное количество игроков на сервере<br />hlds_map=de_map&nbsp; #Имя первоначальной карты при запуске<br />hlds_pid=source.pid<br />screen_pid=$screen_name-screen.pid<br />hlds_options=&quot;-nohltv +exec server.cfg&quot;&nbsp; #Дополнительные параметры запуска<br />use_user=srcds #Имя юзера от которого запускается сервер<br />condebug=0<br />check_version=0<br />checker_command=&quot;quakestat&quot;</p><p>#----------------------------------------------------<br /># Номер ядра/процессора в линуксе <br /># 2х-ядерные: 0 - первое ядро, 1 - второе ядро<br /># 4x-ядерные: 0 - первое ядро ... 3 - четвертое ядро<br /># По аналогии с другими многоядерными процессорами<br />use_core=2<br />#----------------------------------------------------</p><p>#################&nbsp; &nbsp; ВНИМАНИЕ&nbsp; &nbsp; ###################<br />#<br /># Строчки ниже, если не знаете, лучше не трогать!<br />#<br />#################&nbsp; &nbsp; ВНИМАНИЕ&nbsp; &nbsp; ###################<br />RETVAL=0</p><p>succes=&quot;[\033[1;32m ОК \033[0m]&quot;<br />failed=&quot;[\033[1;31m FAIL \033[0m]&quot;<br />status_on=&quot;[\033[1;32m Online \033[0m]&quot;<br />status_off=&quot;[\033[1;31m Offline \033[0m]&quot;<br />title=&quot;\033[1;34m [::]\033[0m&quot;</p><p>if [ &quot;$condebug&quot; -eq 1 ]; then <br />&nbsp; &nbsp; hlds_options2=&quot;-condebug&quot;<br />fi</p><p># Команда screen<br />INTR=&quot;taskset -c $use_core /usr/bin/screen -A -m -d -S $screen_name&quot;</p><p>if [ ! -x $path/srcds_run ]; then<br />&nbsp; &nbsp; printf &quot;\033[22;31m Проверьте права на исполнение srcds_run \033[0m\n&quot;<br />&nbsp; &nbsp; exit 1<br />fi</p><p>prestart_check() {<br />&nbsp; &nbsp; if [ -f $path/$hlds_gametype/$hlds_pid ] &amp;&amp; [ -f $path/$screen_pid ]; then<br />&nbsp; &nbsp; &nbsp; &nbsp; ch=`ps -ef | grep SCREEN | grep $screen_name`<br />&nbsp; &nbsp; &nbsp; &nbsp; if [ -n &quot;$ch&quot; ]; then<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; printf &quot;\033[1;34m Сервер $SERVER_NAME\033[0m \033[32m(!!) на данный момент УЖЕ работает (!!)\033[0m\n&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit 1<br />&nbsp; &nbsp; &nbsp; &nbsp; else <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cd $path<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rm -rf $path/$screen_pid<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rm -rf $path/$hlds_gametype/$hlds_pid<br />&nbsp; &nbsp; &nbsp; &nbsp; fi<br />&nbsp; &nbsp; fi<br />}</p><p>start() {<br />&nbsp; &nbsp; if [ &quot;$check_version&quot; -eq 1 ]; then<br />&nbsp; &nbsp; &nbsp; &nbsp; check_version<br />&nbsp; &nbsp; fi<br />&nbsp; &nbsp; # Проверка престартовая<br />&nbsp; &nbsp; prestart_check<br />&nbsp; &nbsp; echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />&nbsp; &nbsp; cd $path<br />&nbsp; &nbsp; $INTR sudo -u $use_user ./srcds_run -game $hlds_gametype +maxplayers $hlds_players +map $hlds_map +hostip $hlds_ip +hostport $hlds_port $hlds_options $hlds_options2 -pidfile $hlds_pid<br />&nbsp; &nbsp; # Поиск и запись пидов процессов сервера и скринв системе<br />&nbsp; &nbsp; ps -ef | grep SCREEN | grep &quot;$screen_name&quot; | grep -v grep | awk &#039;{ print $2}&#039; &gt; $path/$screen_pid<br />&nbsp; &nbsp; printf &quot;$title\033[1;34m Запуск сервера $SERVER_NAME \033[0m\n&quot;<br />&nbsp; &nbsp; printf &quot;\033[1;35m Порт севрера:\033[0m \033[1;36m$hlds_port\033[0m\n&quot;<br />&nbsp; &nbsp; printf &quot;\033[1;35m Привязка к ядру:\033[0m \033[1;36m$use_core\033[0m\n&quot;<br />&nbsp; &nbsp; printf &quot;\033[1;35m Запуск от юзера:\033[0m \033[1;36m$use_user\033[0m\n&quot;<br />&nbsp; &nbsp; printf &quot;\033[1;33m Статус ~&gt; \033[0m&quot;<br />&nbsp; &nbsp; sleep 1<br />&nbsp; &nbsp; if [ -f $path/$hlds_gametype/$hlds_pid ] &amp;&amp; [ -f $path/$screen_pid ]; then<br />&nbsp; &nbsp; &nbsp; &nbsp; ch=`ps -ef | grep SCREEN | grep $screen_name`<br />&nbsp; &nbsp; &nbsp; &nbsp; if [ -n &quot;$ch&quot; ]; then<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; printf &quot;%53s$succes \n&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; printf &quot;%53s$failed \n&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; fi<br />&nbsp; &nbsp; fi<br />&nbsp; &nbsp; echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />}</p><p>stop() {<br />&nbsp; &nbsp; if [ &quot;$check_version&quot; -eq 1 ]; then<br />&nbsp; &nbsp; &nbsp; &nbsp; check_version<br />&nbsp; &nbsp; fi<br />&nbsp; &nbsp; echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />&nbsp; &nbsp; if [ -f $path/$hlds_pid ] &amp;&amp; [ -f $path/$screen_pid ]; then<br />&nbsp; &nbsp; &nbsp; &nbsp; # Извлекаем ID процесса из файла и увибаем процессы<br />&nbsp; &nbsp; &nbsp; &nbsp; /usr/bin/screen -R $screen_name -X quit<br />&nbsp; &nbsp; &nbsp; &nbsp; sleep 1<br />&nbsp; &nbsp; &nbsp; &nbsp; rm -rf $path/$screen_pid<br />&nbsp; &nbsp; &nbsp; &nbsp; rm -rf $path/$hlds_pid</p><p>&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;$title\033[1;31m Остановка $SERVER_NAME \033[0m&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;%33s$succes \n&quot;</p><p>&nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;\033[1;34m Невозможно остановить $SERVER_NAME, сервер НЕ запущен \033[0m&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;%5s$failed \n&quot;<br />&nbsp; &nbsp; fi<br />&nbsp; &nbsp; echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />} </p><p>status() {<br />&nbsp; &nbsp; if [ &quot;$check_version&quot; -eq 1 ]; then<br />&nbsp; &nbsp; &nbsp; &nbsp; check_version<br />&nbsp; &nbsp; fi<br />&nbsp; &nbsp; echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />&nbsp; &nbsp; printf &quot;$title\033[1;34m Статус сервера $SERVER_NAME \033[0m\n&quot;<br />&nbsp; &nbsp; printf &quot;\033[1;35m Порт севрера:\033[0m \033[1;36m$hlds_port\033[0m\n&quot;<br />&nbsp; &nbsp; printf &quot;\033[1;35m Привязка к ядру:\033[0m \033[1;36m$use_core\033[0m\n&quot;<br />&nbsp; &nbsp; printf &quot;\033[1;35m Запуск от юзера:\033[0m \033[1;36m$use_user\033[0m\n&quot;<br />&nbsp; &nbsp; printf &quot;\033[1;33m Статус ~&gt; \033[0m&quot;<br />&nbsp; &nbsp; sleep 1<br />&nbsp; &nbsp; ch=`ps -ef | grep SCREEN | grep $screen_name`<br />&nbsp; &nbsp; if [ -n &quot;$ch&quot; ]; then<br />&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;%49s$status_on \n&quot;<br />&nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;%48s$status_off \n&quot;<br />&nbsp; &nbsp; fi<br />&nbsp; &nbsp; echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />}</p><p>console() {<br />&nbsp; &nbsp; if [ &quot;$check_version&quot; -eq 1 ]; then<br />&nbsp; &nbsp; &nbsp; &nbsp; check_version<br />&nbsp; &nbsp; fi<br />&nbsp; &nbsp; echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />&nbsp; &nbsp; if [ -f $path/$hlds_gametype/$hlds_pid ] &amp;&amp; [ -f $path/$screen_pid ]; then<br />&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;$title\033[1;34m Подключение к консоли $SERVER_NAME сервера \033[0m\n&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;\033[36m Для выхода из консоли поочерёдно нажать \033[1;36mCtrl+A, D \033[0m\n&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;\033[36m Для листинга консоли поочерёдно нажать \033[1;36mCtrl+A, Esc \033[0m\n&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;\033[36m Для выхода из режима листинга нажать \033[1;36mEsc \033[0m\n&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;\033[1;31m Внимание!!! По неаккуратности можно положить сервер <img src="https://linuxforum.ru/img/smilies/ag.gif" alt="ag" /> \033[0m\n&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot; Консоль включится через 5 секунд...&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; sleep 5<br />&nbsp; &nbsp; &nbsp; &nbsp; /usr/bin/screen -R $screen_name<br />&nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;\033[1;31m Невозможно подключиться к $SERVER_NAME, сервер не запущен \033[0m\n&quot;<br />&nbsp; &nbsp; fi<br />}</p><p>compile() {<br />&nbsp; &nbsp; if [ &quot;$check_version&quot; -eq 1 ]; then<br />&nbsp; &nbsp; &nbsp; &nbsp; check_version<br />&nbsp; &nbsp; fi<br />&nbsp; &nbsp; echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />&nbsp; &nbsp; if [ -d $path/cstrike/addons/amxmodx ]; then<br />&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;\033[32m Компиляция плагинов AmxModX \033[0m\n&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;\033[36m Компилируются исходные файлы (sma), находящиеся в директории {addons/amxmodx/scripting/*.sma} \033[0m\n&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;\033[36m По завершению компиляции нажмите Q для выхода \033[0m\n&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;\033[36m Компиляция начнется через 2 секунды. \033[0m\n&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; sleep 2<br />&nbsp; &nbsp; &nbsp; &nbsp; cd $path/cstrike/addons/amxmodx/scripting<br />&nbsp; &nbsp; &nbsp; &nbsp; ./compile.sh<br />&nbsp; &nbsp; &nbsp; &nbsp; echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;\033[32m Плагины скомпилированы \033[0m\n&quot;<br />&nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;\033[22;31m Проверьте установлен ли AmxModX (??) \033[0m\n&quot;<br />&nbsp; &nbsp; fi<br />&nbsp; &nbsp; echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />}</p><p>check_version() {<br />&nbsp; &nbsp; echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />&nbsp; &nbsp; cd $path<br />&nbsp; &nbsp; rm -f version.txt<br />&nbsp; &nbsp; wget <a href="http://eqline.ru/project/hlds_init_script/version.txt">http://eqline.ru/project/hlds_init_script/version.txt</a> 1&gt; /dev/null 2&gt;&amp;1<br />&nbsp; &nbsp; sleep 1<br />&nbsp; &nbsp; for ver in `cat $path/version.txt`<br />&nbsp; &nbsp; do<br />&nbsp; &nbsp; &nbsp; &nbsp; if [ $VERSION \&lt; $ver ]; then<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; printf &quot;\033[1;31m Доступна новая версия скрипта ( $ver )\033[0m\n&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; printf &quot;\033[36m Подробнее на форуме eQline.ru: <a href="http://forum.eqline.ru">http://forum.eqline.ru</a> \033[0m\n&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; printf &quot;\033[1;36m Ссылка: <a href="http://forum.eqline.ru/topic/361-скрипт-запуска-hlds-серверов/">http://forum.eqline.ru/topic/361-скрипт … -серверов/</a> \033[0m\n&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; printf &quot;\033[1;36m Ваша версия является последней\033[0m \033[1;34m( Текущая версия: $VERSION ) \033[0m\n&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; fi<br />&nbsp; &nbsp; break<br />&nbsp; &nbsp; done<br />&nbsp; &nbsp; echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />&nbsp; &nbsp; rm -f version.txt<br />&nbsp; &nbsp; sleep 1<br />}</p><p>check_logsize() {<br />&nbsp; &nbsp; printf &quot;\033[1;35m Проверка размера .log файлов \033[0m\n&quot;<br />&nbsp; &nbsp; maxlogsize=10485760<br />&nbsp; &nbsp; if [ -f $path/checker.log ]; then<br />&nbsp; &nbsp; &nbsp; &nbsp; sizeCheckUP=`stat -c%s $path/checker.log`<br />&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;\033[1;36m Размер checker.log:\033[0m \033[1;34m $sizeCheckUP байт\033[0m\n&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; if [ &quot;$sizeCheckUP&quot; -ge &quot;$maxlogsize&quot; ]; then<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; printf &quot;\033[1;31m Очищаю файл checker.log\033[0m\n&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tail -n 50 $path/checker.log &gt; $path/checker.temp<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mv $path/checker.temp $path/checker.log&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sleep 1<br />&nbsp; &nbsp; &nbsp; &nbsp; fi<br />&nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;\033[1;31m Файл checker.log отсутствует\033[0m\n&quot;<br />&nbsp; &nbsp; fi<br />&nbsp; &nbsp; if [ -f $path/cstrike/qconsole.log ]; then<br />&nbsp; &nbsp; &nbsp; &nbsp; sizeQconsole=`stat -c%s $path/cstrike/qconsole.log`<br />&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;\033[1;36m Размер qconsole.log:\033[0m \033[1;34m $sizeQconsole байт\033[0m\n&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; if [ &quot;$sizeQconsole&quot; -ge &quot;$maxlogsize&quot; ]; then<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; printf &quot;\033[1;31m Очищаю файл qconsole.log\033[0m\n&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tail -n 50 $path/cstrike/qconsole.log &gt;&nbsp; $path/cstrike/qconsole.temp<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mv&nbsp; $path/cstrike/qconsole.temp&nbsp; $path/cstrike/qconsole.log<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sleep 1<br />&nbsp; &nbsp; &nbsp; &nbsp; fi<br />&nbsp; &nbsp; else <br />&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;\033[1;31m Файл qconsole.log отсутствует\033[0m\n&quot;<br />&nbsp; &nbsp; fi<br />}</p><p>checker() {<br />&nbsp; &nbsp; checktag=&quot;[HLDS-CheckUP]&quot;<br />&nbsp; &nbsp; checkresponse=`$checker_command -P -a2s $hlds_ip:$hlds_port | grep response`<br />&nbsp; &nbsp; if [ -n &quot;$checkresponse&quot; ]; then<br />&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;\033[1;37m$checktag\033[0m $SERVER_NAME \033[31m*[No response]*\033[0m\n&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; # echo Отсылаем почту<br />&nbsp; &nbsp; &nbsp; &nbsp; cd $path<br />&nbsp; &nbsp; &nbsp; &nbsp; time=`date +%X`<br />&nbsp; &nbsp; &nbsp; &nbsp; date=`date +%D`<br />&nbsp; &nbsp; &nbsp; &nbsp; inlog=`$checker_command -P -a2s $hlds_ip:$hlds_port | grep response`<br />&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;[$time - $date] *[No response]* $inlog\n&quot; &gt;&gt; checker.log<br />&nbsp; &nbsp; &nbsp; &nbsp; stop<br />&nbsp; &nbsp; &nbsp; &nbsp; sleep 2<br />&nbsp; &nbsp; &nbsp; &nbsp; start<br />&nbsp; &nbsp; &nbsp; &nbsp; sleep 1<br />&nbsp; &nbsp; &nbsp; &nbsp; echo ----------------ATTANTION---------------- &gt;&gt; checker.log<br />&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;StartUP $SERVER_NAME:&quot; &gt;&gt; checker.log<br />&nbsp; &nbsp; &nbsp; &nbsp; ch=`ps -ef | grep SCREEN | grep $screen_name`<br />&nbsp; &nbsp; &nbsp; &nbsp; if [ -n &quot;$ch&quot; ]; then<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; printf &quot; *[OK]* \n&quot; &gt;&gt; checker.log<br />&nbsp; &nbsp; &nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; printf &quot; *[FAILED]* \n&quot; &gt;&gt; checker.log<br />&nbsp; &nbsp; &nbsp; &nbsp; fi<br />&nbsp; &nbsp; &nbsp; &nbsp; echo ----------------------------------------- &gt;&gt; checker.log<br />&nbsp; &nbsp; &nbsp; &nbsp; exit 1<br />&nbsp; &nbsp; fi<br />&nbsp; &nbsp; checkdown=`$checker_command -P -a2s $hlds_ip:$hlds_port | grep DOWN`<br />&nbsp; &nbsp; if [ -n &quot;$checkdown&quot; ]; then<br />&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;\033[1;37m$checktag\033[0m $SERVER_NAME \033[31m*[DOWN]*\033[0m\n&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; # echo Отсылаем почту<br />&nbsp; &nbsp; &nbsp; &nbsp; cd $path<br />&nbsp; &nbsp; &nbsp; &nbsp; time=`date +%X`<br />&nbsp; &nbsp; &nbsp; &nbsp; date=`date +%D`<br />&nbsp; &nbsp; &nbsp; &nbsp; inlog=`$checker_command -P -a2s $hlds_ip:$hlds_port | grep DOWN`<br />&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;[$time - $date] *[DOWN]* $inlog\n&quot; &gt;&gt; checker.log<br />&nbsp; &nbsp; &nbsp; &nbsp; stop<br />&nbsp; &nbsp; &nbsp; &nbsp; sleep 2<br />&nbsp; &nbsp; &nbsp; &nbsp; start<br />&nbsp; &nbsp; &nbsp; &nbsp; sleep 1<br />&nbsp; &nbsp; &nbsp; &nbsp; echo ----------------ATTANTION---------------- &gt;&gt; checker.log<br />&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;StartUP $SERVER_NAME:&quot; &gt;&gt; checker.log<br />&nbsp; &nbsp; &nbsp; &nbsp; ch=`ps -ef | grep SCREEN | grep $screen_name`<br />&nbsp; &nbsp; &nbsp; &nbsp; if [ -n &quot;$ch&quot; ]; then<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; printf &quot; *[OK]* \n&quot; &gt;&gt; checker.log<br />&nbsp; &nbsp; &nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; printf &quot; *[FAILED]* \n&quot; &gt;&gt; checker.log<br />&nbsp; &nbsp; &nbsp; &nbsp; fi<br />&nbsp; &nbsp; &nbsp; &nbsp; echo ----------------------------------------- &gt;&gt; checker.log<br />&nbsp; &nbsp; &nbsp; &nbsp; exit 1<br />&nbsp; &nbsp; fi<br />&nbsp; &nbsp; checkup=`$checker_command -P -a2s $hlds_ip:$hlds_port | grep cstrike`<br />&nbsp; &nbsp; if [ -n &quot;$checkup&quot; ]; then<br />&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;\033[1;37m$checktag\033[0m $SERVER_NAME \033[32m*[OK]*\033[0m\n&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; cd $path<br />&nbsp; &nbsp; &nbsp; &nbsp; time=`date +%X`<br />&nbsp; &nbsp; &nbsp; &nbsp; date=`date +%D`<br />&nbsp; &nbsp; &nbsp; &nbsp; inlog=`quakestat -P -a2s $hlds_ip:$hlds_port | grep cstrike`<br />&nbsp; &nbsp; &nbsp; &nbsp; printf &quot;[$time - $date] *[OK]* $inlog\n&quot; &gt;&gt; checker.log<br />&nbsp; &nbsp; &nbsp; &nbsp; exit 1<br />&nbsp; &nbsp; fi<br />}</p><p>case &quot;$1&quot; in<br />&nbsp; &nbsp; start)<br />&nbsp; &nbsp; &nbsp; &nbsp; check_logsize<br />&nbsp; &nbsp; &nbsp; &nbsp; start<br />&nbsp; &nbsp; ;;<br />&nbsp; &nbsp; stop)<br />&nbsp; &nbsp; &nbsp; &nbsp; stop<br />&nbsp; &nbsp; ;;<br />&nbsp; &nbsp; restart)<br />&nbsp; &nbsp; &nbsp; &nbsp; stop<br />&nbsp; &nbsp; &nbsp; &nbsp; sleep 2<br />&nbsp; &nbsp; &nbsp; &nbsp; start<br />&nbsp; &nbsp; ;;<br />&nbsp; &nbsp; status)<br />&nbsp; &nbsp; &nbsp; &nbsp; status<br />&nbsp; &nbsp; ;;<br />&nbsp; &nbsp; console)<br />&nbsp; &nbsp; &nbsp; &nbsp; console<br />&nbsp; &nbsp; ;;<br />&nbsp; &nbsp; compile)<br />&nbsp; &nbsp; &nbsp; &nbsp; compile<br />&nbsp; &nbsp; ;;<br />&nbsp; &nbsp; update)<br />&nbsp; &nbsp; &nbsp; &nbsp; check_version<br />&nbsp; &nbsp; ;;<br />&nbsp; &nbsp; checker)<br />&nbsp; &nbsp; &nbsp; &nbsp; checker<br />&nbsp; &nbsp; ;;<br />&nbsp; &nbsp; logsize)<br />&nbsp; &nbsp; &nbsp; &nbsp; check_logsize<br />&nbsp; &nbsp; ;;<br />&nbsp; &nbsp; *)<br />&nbsp; &nbsp; echo &quot;Usage: $0 {start|stop|restart|status|console|compile|update|checker|logsize}&quot;<br />&nbsp; &nbsp; exit 1<br />esac<br />exit 0</p></div></div><p>Но со скриптом, думаю, все нормально, т.к. на одном сервере все прекрасно работает.<br />Пользуюсь редактором mcedit<br />Задания добавлял под root&#039;ом</p><p>И еще один вопрос. Почему один из скриптов через крон запускается, а второй нет, хотя вручную он запускается.<br />Прописано, вроде, правильно<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p>10 4 * * * root /etc/init.d/css05d48<br />10 4 * * * root /etc/init.d/css07d48</p></div></div>]]></content>
			<author>
				<name><![CDATA[4fun]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16085</uri>
			</author>
			<updated>2011-03-18T12:52:03Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=158019#p158019</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проблема с кроном]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=157898#p157898" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>4fun пишет:</cite><blockquote><p>premature EOF<br />errors in crontab file, can&#039;t install.</p></blockquote></div><p>отличный дистр Gentoo!!!<br />моя слака молча сожрала такую строчку, и тупо её НЕ выполняет.</p><p>Видимо ошибка в том, что <strong>ВСЕ строки в Linux должны заканчиваться переводом строки</strong>.<br />И только VIM этот перевод строки туда автоматом добавляет.</p><p>А если перевода строки нет, то это не строка, а НЕХ. Слакварь её тупо игнорит. Mandriva тоже.</p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2011-03-18T08:03:16Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=157898#p157898</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проблема с кроном]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=157884#p157884" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Lupo Alberto пишет:</cite><blockquote><p>Я не считаю недостатком возможность дополнительного контроля за пользователями.</p></blockquote></div><p>я не говорил то что это недостаток, а сказал лишь то что изначально crontab доступен пользователю, в вашей же ситуации какой то баг =)<br />Ладно, мы отошли от темы, ждем что скажет ТС =)</p>]]></content>
			<author>
				<name><![CDATA[i2ks]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16</uri>
			</author>
			<updated>2011-03-18T07:26:08Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=157884#p157884</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проблема с кроном]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=157878#p157878" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>i2ks пишет:</cite><blockquote><p>Это у вас какой то косяк с crontab, причем судя по этой ошибке, это только на gentoo такое твориться,</p></blockquote></div><p>Я не считаю недостатком возможность дополнительного контроля за пользователями.</p>]]></content>
			<author>
				<name><![CDATA[Lupo Alberto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9018</uri>
			</author>
			<updated>2011-03-18T06:57:02Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=157878#p157878</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проблема с кроном]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=157873#p157873" />
			<content type="html"><![CDATA[<p><strong>Lupo Alberto</strong>,&nbsp; Каждый пользователь системы имеет свой файл заданий crontab, в котором описано, в какое время и какие программы запускать от имени этого пользователя. Для редактирования файла crontab используется специальная одноименная программа crontab <a href="http://ru.wikipedia.org/wiki/Cron">wiki</a>. <br />Это у вас какой то косяк с crontab, причем судя по этой ошибке, это только на gentoo такое твориться, На freebsd, solaris, opensolaris, opensuse 9.x-11.4, FC, zenwalk как то работает&nbsp; =)</p><div class="quotebox"><cite>4fun пишет:</cite><blockquote><p>После добавления задания через crontab -e получаю следующую ошибку в консоли</p></blockquote></div><p>что хоть делаете покажите. Какое задание, как добавляли, ну и содержание скрипта сюда выкладывайте.</p>]]></content>
			<author>
				<name><![CDATA[i2ks]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16</uri>
			</author>
			<updated>2011-03-18T06:45:31Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=157873#p157873</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проблема с кроном]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=157867#p157867" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>i2ks пишет:</cite><blockquote><p>и в какую такую группу должен входить пользователь, что бы он мог выполнять задания?&nbsp; blink</p></blockquote></div><br /><p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">gentoo-laptop lupo # whoami<br />root<br />gentoo-laptop lupo # ls -ld /var/spool/cron<br />drwxr-x--- 4 root cron 144 Авг 11&nbsp; 2010 /var/spool/cron/<br />gentoo-laptop lupo # exit<br />lupo@gentoo-laptop ~ % whoami<br />lupo<br />lupo@gentoo-laptop ~ % crontab -e<br />cannot chdir(/var/spool/cron), bailing out.<br />/var/spool/cron: Отказано в доступе</div></p>]]></content>
			<author>
				<name><![CDATA[Lupo Alberto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9018</uri>
			</author>
			<updated>2011-03-18T06:37:16Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=157867#p157867</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проблема с кроном]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=157863#p157863" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Lupo Alberto пишет:</cite><blockquote><p>Вы пытаетесь добавить задание от обычного пользователя или root&#039;а? Если от пользователя, входит ли он в соответствующую группу?</p></blockquote></div><p>А есть разница от рута или пользователя добавить задания? и в какую такую группу должен входить пользователь, что бы он мог выполнять задания?&nbsp; oO</p>]]></content>
			<author>
				<name><![CDATA[i2ks]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16</uri>
			</author>
			<updated>2011-03-18T06:30:56Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=157863#p157863</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проблема с кроном]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=157859#p157859" />
			<content type="html"><![CDATA[<p><strong>4fun</strong>, покажите crontab-файл вот таким образом <br /></p><div class="codebox"><pre><code>cat -A /var/spool/cron/crontabs/ВАШ_ФАЙЛ</code></pre></div><p>Вы пытаетесь добавить задание от обычного пользователя или root&#039;а? Если от пользователя, входит ли он в соответствующую группу? Какой редактор используется для создания crontab-файла?</p>]]></content>
			<author>
				<name><![CDATA[Lupo Alberto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9018</uri>
			</author>
			<updated>2011-03-18T06:20:23Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=157859#p157859</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проблема с кроном]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=157849#p157849" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Lupo Alberto пишет:</cite><blockquote><p>Ошибка в crontab-файле: 14 строка, преждевременный конец файла, как-то так.&nbsp; wink</p></blockquote></div><p>Да, я уже переводил. Но тут странно то, что такое уже было на одном из серверов, что то я, то друг не могли добавить задание с такой ошибкой. Когда не мог добавить друг, то добавлял я то же самое задание, что и он писал, а когда у меня не получалось, то добавлял друг. С чем такое может быть связано? Т.е. у одного из нас была ошибка, а у другого нет и все это на одном и том же сервере с разными заданиями.</p>]]></content>
			<author>
				<name><![CDATA[4fun]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16085</uri>
			</author>
			<updated>2011-03-18T05:24:49Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=157849#p157849</id>
		</entry>
</feed>
