<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://qingliezhiquan.com/mediawiki/index.php?action=history&amp;feed=atom&amp;title=ChatGPT_%E6%9C%89%E5%A4%9A%E5%BC%BA%EF%BC%9A%E7%94%A8_ChatGPT_%E5%8D%81%E7%A7%92%E5%AD%A6%E4%BC%9A%E8%AE%BE%E7%BD%AE%E8%87%AA%E5%8A%A8%E4%BB%BB%E5%8A%A1</id>
	<title>ChatGPT 有多强：用 ChatGPT 十秒学会设置自动任务 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://qingliezhiquan.com/mediawiki/index.php?action=history&amp;feed=atom&amp;title=ChatGPT_%E6%9C%89%E5%A4%9A%E5%BC%BA%EF%BC%9A%E7%94%A8_ChatGPT_%E5%8D%81%E7%A7%92%E5%AD%A6%E4%BC%9A%E8%AE%BE%E7%BD%AE%E8%87%AA%E5%8A%A8%E4%BB%BB%E5%8A%A1"/>
	<link rel="alternate" type="text/html" href="https://qingliezhiquan.com/mediawiki/index.php?title=ChatGPT_%E6%9C%89%E5%A4%9A%E5%BC%BA%EF%BC%9A%E7%94%A8_ChatGPT_%E5%8D%81%E7%A7%92%E5%AD%A6%E4%BC%9A%E8%AE%BE%E7%BD%AE%E8%87%AA%E5%8A%A8%E4%BB%BB%E5%8A%A1&amp;action=history"/>
	<updated>2026-08-11T04:56:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://qingliezhiquan.com/mediawiki/index.php?title=ChatGPT_%E6%9C%89%E5%A4%9A%E5%BC%BA%EF%BC%9A%E7%94%A8_ChatGPT_%E5%8D%81%E7%A7%92%E5%AD%A6%E4%BC%9A%E8%AE%BE%E7%BD%AE%E8%87%AA%E5%8A%A8%E4%BB%BB%E5%8A%A1&amp;diff=8198&amp;oldid=prev</id>
		<title>Mwroot: Created page with &quot;{| class=&quot;wikitable&quot; |我 |How to write a corntab to run sth.sh at everyday 21:30? |- |ChatGPT | To schedule a task to run a shell script (sth.sh) every day at 21:30 using a cron job, you can create a cron tab entry. Cron tab entries have the following format:  &lt;syntaxhighlight lang=&quot;scss&quot; line&gt; * * * * * command_to_be_executed - - - - - | | | | | | | | | +----- Day of the week (0 - 7) (Sunday is both 0 and 7) | | | +------- Month (1 - 12) | | +--------- Day of the month...&quot;</title>
		<link rel="alternate" type="text/html" href="https://qingliezhiquan.com/mediawiki/index.php?title=ChatGPT_%E6%9C%89%E5%A4%9A%E5%BC%BA%EF%BC%9A%E7%94%A8_ChatGPT_%E5%8D%81%E7%A7%92%E5%AD%A6%E4%BC%9A%E8%AE%BE%E7%BD%AE%E8%87%AA%E5%8A%A8%E4%BB%BB%E5%8A%A1&amp;diff=8198&amp;oldid=prev"/>
		<updated>2025-09-29T03:36:23Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{| class=&amp;quot;wikitable&amp;quot; |我 |How to write a corntab to run sth.sh at everyday 21:30? |- |ChatGPT | To schedule a task to run a shell script (sth.sh) every day at 21:30 using a cron job, you can create a cron tab entry. Cron tab entries have the following format:  &amp;lt;syntaxhighlight lang=&amp;quot;scss&amp;quot; line&amp;gt; * * * * * command_to_be_executed - - - - - | | | | | | | | | +----- Day of the week (0 - 7) (Sunday is both 0 and 7) | | | +------- Month (1 - 12) | | +--------- Day of the month...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|我&lt;br /&gt;
|How to write a corntab to run sth.sh at everyday 21:30?&lt;br /&gt;
|-&lt;br /&gt;
|ChatGPT&lt;br /&gt;
|&lt;br /&gt;
To schedule a task to run a shell script (sth.sh) every day at 21:30 using a cron job, you can create a cron tab entry. Cron tab entries have the following format:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;scss&amp;quot; line&amp;gt;&lt;br /&gt;
* * * * * command_to_be_executed&lt;br /&gt;
- - - - -&lt;br /&gt;
| | | | |&lt;br /&gt;
| | | | +----- Day of the week (0 - 7) (Sunday is both 0 and 7)&lt;br /&gt;
| | | +------- Month (1 - 12)&lt;br /&gt;
| | +--------- Day of the month (1 - 31)&lt;br /&gt;
| +----------- Hour (0 - 23)&lt;br /&gt;
+------------- Minute (0 - 59)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To run sth.sh every day at 21:30, you would set the minute field to 30 and the hour field to 21. The other fields can be set to an asterisk (*) to indicate &amp;quot;any&amp;quot; value. Here&amp;#039;s the cron tab entry to achieve this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
30 21 * * * /path/to/sth.sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure to replace /path/to/sth.sh with the actual path to your sth.sh script. To edit your crontab, you can use the crontab -e command, which opens your default text editor for editing the cron jobs. Add the line mentioned above to schedule your script to run at 21:30 every day, and then save the file.&lt;br /&gt;
&lt;br /&gt;
Remember that the timing of cron jobs is based on your system&amp;#039;s local time, so ensure that your system&amp;#039;s clock and time zone settings are accurate.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
另外，编辑定时任务的命令：&amp;lt;code&amp;gt;crontab -e&amp;lt;/code&amp;gt;，查看定时任务的命令：&amp;lt;code&amp;gt;crontab -l&amp;lt;/code&amp;gt;。&lt;/div&gt;</summary>
		<author><name>Mwroot</name></author>
	</entry>
</feed>