<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>臭皮匠 &#187; cron</title>
	<atom:link href="http://guogoul.com/tag/cron/feed/" rel="self" type="application/rss+xml" />
	<link>http://guogoul.com</link>
	<description></description>
	<lastBuildDate>Fri, 29 Oct 2010 00:24:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ubuntu(linux)下开机自动运行脚本以及定时任务的处理</title>
		<link>http://guogoul.com/2008/05/21/crontab/</link>
		<comments>http://guogoul.com/2008/05/21/crontab/#comments</comments>
		<pubDate>Wed, 21 May 2008 04:55:31 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[crontab]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.guogoul.com/2008/05/21/crontab/</guid>
		<description><![CDATA[1.开机自运行
    简单的处理开机自运行的方法是修改rc.local文件。此文件位于/etc目录下面. 在默认情况下，rc.local是一个空的脚。您只要修改它就可以了。要注意的是，在此文件中运行的命令其依赖的进程是否运行。本人再实验的时候由于想在开机时启动dia.试了好多次都失败。我想可能是界面进程还没有启动。我的实验脚本为
        echo  &#8220;hello. rc.local&#8221; &#62;&#62;home/shanfeng/rc.local 实验成功
    在/etc目录下面还有rc*.d的目录。这些目录里面放在很多/etc/init.d/下面脚本的软链接,操作系统根据不同的运行等级，选择运行其中下的脚本。您也可以修改它们达到开机自运行的目的。
2。定时任务
    介绍一种简单的处理方式
    用cron处理定时任务,首先要保证cron操作已经运行。如果安装了cron 的话。正常情况下cron已经开机自运行了，如果没有运行的话。
    /etc/init.d/cron start
    用crontab来安排定时任务
    crontab [-u user] {-l&#124; -r &#124;  -e}
    [...]]]></description>
		<wfw:commentRss>http://guogoul.com/2008/05/21/crontab/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

