<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; cron]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=29963&amp;type=atom" />
	<updated>2013-09-03T13:11:57Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=29963</id>
		<entry>
			<title type="html"><![CDATA[Re: cron]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=361678#p361678" />
			<content type="html"><![CDATA[<p>хм, вроде завелось. <br /></p><div class="codebox"><pre><code>* * * * * apacche  /usr/bin/php -f /www/main/bitrix/modules/main/cron_events.php</code></pre></div><p>с проверкой ни в какую</p>]]></content>
			<author>
				<name><![CDATA[nik222]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20454</uri>
			</author>
			<updated>2013-09-03T13:11:57Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=361678#p361678</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: cron]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=361652#p361652" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>nik222⇓ пишет:</cite><blockquote><p>да</p></blockquote></div><p>что да?<br />а если так: </p><div class="codebox"><pre><code>su apache -c &quot;/usr/bin/php -f /www/main/bitrix/modules/main/cron_events.php&quot; </code></pre></div><p>Или в крон писать: <br /></p><div class="codebox"><pre><code> 
* * * * *  /usr/bin/php -f /www/main/bitrix/modules/main/cron_events.php</code></pre></div>]]></content>
			<author>
				<name><![CDATA[i2ks]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16</uri>
			</author>
			<updated>2013-09-03T09:39:29Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=361652#p361652</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: cron]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=361651#p361651" />
			<content type="html"><![CDATA[<p>да</p>]]></content>
			<author>
				<name><![CDATA[nik222]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20454</uri>
			</author>
			<updated>2013-09-03T09:35:53Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=361651#p361651</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: cron]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=361650#p361650" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>nik222⇓ пишет:</cite><blockquote><p> /usr/bin/php -f /www/main/bitrix/modules/main/cron_events.php</p></blockquote></div><p>из консоли это хоть работает:?</p>]]></content>
			<author>
				<name><![CDATA[i2ks]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16</uri>
			</author>
			<updated>2013-09-03T09:35:03Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=361650#p361650</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: cron]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=361649#p361649" />
			<content type="html"><![CDATA[<p>файл не создался, после создания вручную пустой&nbsp; <img src="https://linuxforum.ru/img/smilies/ac.gif" alt="ac" /></p>]]></content>
			<author>
				<name><![CDATA[nik222]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20454</uri>
			</author>
			<updated>2013-09-03T09:31:38Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=361649#p361649</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: cron]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=361644#p361644" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>nik222⇓ пишет:</cite><blockquote><p>оно и так не отрабатывает:</p></blockquote></div><div class="quotebox"><cite>i2ks⇓ пишет:</cite><blockquote><p> просто перенаправить вывод в файл,</p></blockquote></div><p>/usr/bin/php -f /www/main/bitrix/modules/main/cron_events.php &gt; /tmp/test.out</p>]]></content>
			<author>
				<name><![CDATA[i2ks]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16</uri>
			</author>
			<updated>2013-09-03T09:00:41Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=361644#p361644</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: cron]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=361643#p361643" />
			<content type="html"><![CDATA[<p>оно и так не отрабатывает:<br /></p><div class="codebox"><pre><code> * * * * * apache  /usr/bin/php -f /www/main/bitrix/modules/main/cron_events.php</code></pre></div>]]></content>
			<author>
				<name><![CDATA[nik222]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20454</uri>
			</author>
			<updated>2013-09-03T08:56:19Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=361643#p361643</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: cron]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=361642#p361642" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>nik222⇓ пишет:</cite><blockquote><p>&gt;/dev/null 2&gt;&amp;1</p></blockquote></div><p>убрать для начала это и просто перенаправить вывод в файл, и потом уже разбираться что к чему. <br /></p><div class="quotebox"><cite>nik222⇓ пишет:</cite><blockquote><p>{ /usr/bin/php -f /www/main/bitrix/modules/main/cron_events.php ; }</p></blockquote></div><p>Вы уверены то что данный вид записи будет корректно работать?</p>]]></content>
			<author>
				<name><![CDATA[i2ks]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16</uri>
			</author>
			<updated>2013-09-03T08:40:48Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=361642#p361642</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: cron]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=361641#p361641" />
			<content type="html"><![CDATA[<p>С минутами все стало понятно. Но не отрабатывает задание прописанное в /etc/crontab</p><div class="codebox"><pre><code>0-59 * * * *  apache test -f /www/main/bitrix/modules/main/cron_events.php &amp;&amp; { /usr/bin/php -f /www/main/bitrix/modules/main/cron_events.php ; } &gt;/dev/null 2&gt;&amp;1</code></pre></div><p>Права на cron_events.php - 0644</p><p>В логе пусто.</p><p>В чем может быть загвоздка ?</p>]]></content>
			<author>
				<name><![CDATA[nik222]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20454</uri>
			</author>
			<updated>2013-09-03T08:34:42Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=361641#p361641</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: cron]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=361214#p361214" />
			<content type="html"><![CDATA[<p>yars спасибо большое</p>]]></content>
			<author>
				<name><![CDATA[nik222]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20454</uri>
			</author>
			<updated>2013-08-30T18:18:45Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=361214#p361214</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: cron]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=361207#p361207" />
			<content type="html"><![CDATA[<p>Если во всех полях звездочки, то задание будет выполняться каждую минуту, каждый час, каждый день, каждую неделю, каждый месяц и т.д. = каждую минуту.</p>]]></content>
			<author>
				<name><![CDATA[yars]]></name>
				<uri>https://linuxforum.ru/profile.php?id=22799</uri>
			</author>
			<updated>2013-08-30T17:51:54Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=361207#p361207</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: cron]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=361204#p361204" />
			<content type="html"><![CDATA[<p>Благодарю конечно. До этого все это и так было понятно&nbsp; <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /> Непонятно почему при записи вида&nbsp; * * * * *&nbsp; скрипт отрабатывает раз в минуту. Не могу понять от куда берется эта настройка. Задача прописана в /etc/crontab. В /var/spool/cron все чисто.</p>]]></content>
			<author>
				<name><![CDATA[nik222]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20454</uri>
			</author>
			<updated>2013-08-30T17:46:05Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=361204#p361204</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: cron]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=361153#p361153" />
			<content type="html"><![CDATA[<p><strong>nik222</strong>, разложу ваши звездочки не в строку а в столбик, может понятней будет<br />* - минуты (*=каждую)<br />* - часы (*=каждый)<br />* - дни/числа месяца (*=каждый)<br />* - месяцы (*=каждый)<br />* - дни недели (*=каждый)<br />UPD<br />запись вида<br />*/5 * * * * comand <br />будет выполнять команду каждые 5 минут<br />PS на правах примера</p>]]></content>
			<author>
				<name><![CDATA[sotariz]]></name>
				<uri>https://linuxforum.ru/profile.php?id=13164</uri>
			</author>
			<updated>2013-08-30T13:37:10Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=361153#p361153</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: cron]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=361120#p361120" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>A field may be an asterisk (*), which always stands for ``first-last&#039;&#039;.</code></pre></div><p>недопонял</p>]]></content>
			<author>
				<name><![CDATA[nik222]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20454</uri>
			</author>
			<updated>2013-08-30T11:57:43Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=361120#p361120</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: cron]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=361116#p361116" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>$ info crontab


              field          allowed values
              -----          --------------
              minute         0-59
              hour           0-23
              day of month   1-31
              month          1-12 (or names, see below)
              day of week    0-7 (0 or 7 is Sun, or use names)

       A field may be an asterisk (*), which always stands for ``first-last&#039;&#039;.</code></pre></div>]]></content>
			<author>
				<name><![CDATA[-=Serj=-]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16175</uri>
			</author>
			<updated>2013-08-30T11:47:03Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=361116#p361116</id>
		</entry>
</feed>
