<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Запуск скрипта периодически в centos]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=23975&amp;type=atom" />
	<updated>2012-08-25T17:08:18Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=23975</id>
		<entry>
			<title type="html"><![CDATA[Re: Запуск скрипта периодически в centos]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=295461#p295461" />
			<content type="html"><![CDATA[<p>Да, от <em>root</em>, будут выполняться, для этого он и предназначен.<br />Если планируется выполнение от <em>root</em>, нужные команды можно добавить в общесистемный файл конфигурации — <em>/etc/crontab</em>.</p>]]></content>
			<author>
				<name><![CDATA[Lupo Alberto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9018</uri>
			</author>
			<updated>2012-08-25T17:08:18Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=295461#p295461</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Запуск скрипта периодически в centos]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=295458#p295458" />
			<content type="html"><![CDATA[<p>Спасибо, крон это то что нужно) Скажите вот я залогинился под root, ввёл всё что нужно в команде crontab -e. команды будут выполнятся от root? Когда я разлогинюсь, крон продолжит выполнять команды?</p>]]></content>
			<author>
				<name><![CDATA[DarkDigger]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20256</uri>
			</author>
			<updated>2012-08-25T17:02:26Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=295458#p295458</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Запуск скрипта периодически в centos]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=295453#p295453" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>man cron</code></pre></div><p><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль: root</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"><span style="color:#FF6A6A">[root@linuxforum.ru ~]#</span> crontabs -e</div><br /></p><div class="codebox"><pre><code>cat /var/spool/cron/crontabs/root 
# If you don&#039;t want the output of a cron job mailed to you, you have to direct
# any output to /dev/null.  We&#039;ll do this here since these jobs should run
# properly on a newly installed system, but if they don&#039;t the average newbie
# might get quite perplexed about getting strange mail every 5 minutes. :^)
#
# Run the hourly, daily, weekly, and monthly cron jobs.
# Jobs that need different timing may be entered into the crontab as before,
# but most really don&#039;t need greater granularity than this.  If the exact
# times of the hourly, daily, weekly, and monthly cron jobs do not suit your
# needs, feel free to adjust them.
#
# Run hourly cron jobs at 47 minutes after the hour:
47 * * * * /usr/bin/run-parts /etc/cron.hourly 1&gt; /dev/null
#
# Run daily cron jobs at 4:40 every day:
40 4 * * * /usr/bin/run-parts /etc/cron.daily 1&gt; /dev/null
#
# Run weekly cron jobs at 4:30 on the first day of the week:
30 4 * * 0 /usr/bin/run-parts /etc/cron.weekly 1&gt; /dev/null
#
# Run monthly cron jobs at 4:20 on the first day of the month:
20 4 1 * * /usr/bin/run-parts /etc/cron.monthly 1&gt; /dev/null</code></pre></div>]]></content>
			<author>
				<name><![CDATA[yars]]></name>
				<uri>https://linuxforum.ru/profile.php?id=22799</uri>
			</author>
			<updated>2012-08-25T16:36:29Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=295453#p295453</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Запуск скрипта периодически в centos]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=295452#p295452" />
			<content type="html"><![CDATA[<p><a href="http://ru.wikipedia.org/wiki/Cron">cron</a><br /><a href="http://www.opennet.ru/man.shtml?topic=crontab&amp;category=5&amp;russian=0">man crontab</a><br /><a href="http://www.linuxforum.by/viewtopic.php?f=249&amp;t=79">LinuxFormat №5(144), Май 2011: «Запуск по расписанию»</a></p>]]></content>
			<author>
				<name><![CDATA[Lupo Alberto]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9018</uri>
			</author>
			<updated>2012-08-25T16:36:10Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=295452#p295452</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Запуск скрипта периодически в centos]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=295451#p295451" />
			<content type="html"><![CDATA[<p>Есть необходимость запуска скрипта каждую минуту скажите как это сделать?</p>]]></content>
			<author>
				<name><![CDATA[DarkDigger]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20256</uri>
			</author>
			<updated>2012-08-25T16:27:39Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=295451#p295451</id>
		</entry>
</feed>
