Ted's Blog

Happy coding

crontab

Ted posted @ 2008年8月21日 21:01 in 未分类 with tags crontab , 2405 阅读

crontab 指定在固定时间或固定间隔执行特定的脚本;crontab的常用参数有如下3个:

-e :执行文字编辑器来设定日程表,一般默认的编辑器是VI;

-r :删除目前所有的日程表;

-l :列出目前所有的日程表;

设置日程表时,需要有固定的格式,共6部分,各部分间用空格间隔;其中第6个部分是要执行的命令,前5个部分是设置执行时间或者时间间隔的,具体取值范围和意义如下:

分钟【0-59】 小时【0-23】 日【1-31】 月份【1-12】 星期【0-6】

在设置的时候可以每项有4种指定方式,如下:

* :表示每 分钟/.../星期 都需要执行;

a-b :表示从第 a 分钟/.../星期 到第 b 分钟/.../星期 这段期间都需要执行;

*/n :表示每 n个 分钟/.../星期 时间间隔执行一次;

a,b,c :表示第 a,b,c 分钟/.../星期 时需要执行,也即指定多个具体时间点;

举个例子来说,比如要指定每日早上7点执行脚本mysh的crontab设置如下:

0 7 * * * /home/admin/mysh >/home/admin/mylog.txt 2>&1

Avatar_small
전설 서구 说:
2021年1月24日 16:52

An fascinating discussion is value comment. I think that it is best to write extra on this matter, it won't be a taboo topic however generally people are not enough to talk on such topics. To the next. Cheers gogoanime

Avatar_small
전설 서구 说:
2021年1月27日 02:30

Thanks for every other informative site. The place else may just I get that kind of information written in such an ideal means? I have a venture that I'm just now operating on, and I have been on the look out for such information. mondo-casino

Avatar_small
전설 서구 说:
2021年1月31日 02:42

This is such a great resource that you are providing and you give it away for free. buy tinder accounts

Avatar_small
locksmith services 说:
2021年2月01日 16:59

We provide 4 types of locksmith services i.e. Residential, Commercial, Automotive and Emergency ( 24 hours ) locksmith services. We are available 24 hours a day, 7 days a week. We serve all lock brands ( Yale, Kwikset, Assa Abloy, Schlage, Viro, & etc ) . We help you with anything from lock fitting/installation, emergency door opening etc

<a href="https://www.locksmithsingapore.sg/">https://www.locksmithsingapore.sg/</a>

Avatar_small
Emergency locksmith 说:
2021年2月01日 19:10

At LS Handyman Singapore, we provide a vast range of door repair services on a range of doors. These includes any doors in Singapore. We work on anything from sliding doors, wooden doors glass doors and aluminum doors. Here are some of the services that we provide.

Avatar_small
plumber singapore 说:
2021年2月01日 19:38

At LS Handyman Singapore, we provide a vast range of door repair services on a range of doors. These includes any doors in Singapore. We work on anything from sliding doors, wooden doors glass doors and aluminum doors. Here are some of the services that we provide.

Avatar_small
전설 서구 说:
2021年2月01日 20:11

Only aspire to mention ones content can be as incredible. This clarity with your post is superb and that i may think you’re a guru for this issue. High-quality along with your concur permit me to to seize your current give to keep modified by using approaching blog post. Thanks a lot hundreds of along with you should go on the pleasurable get the job done. Abercrombieandfitchsverige.se Google results

Avatar_small
Painting service 说:
2021年2月01日 22:16

Who likes living in a space that is just whitewashed or white in colour? Isn’t it boring? Don’t we all need some colour in our lives? Believe it or not, the kind of colours we choose for our walls or homes or offices, affects our thinking and personality to a certain extent. It is therefore very important to choose colours with great attention and care. For example, too many bright colours in a bedroom will never let you calm down or relax. Subconsciously, bright colours create hyperactiveness and you can never be at proper peace.

Avatar_small
Painting service 说:
2021年2月01日 22:18

Who likes living in a space that is just whitewashed or white in colour? Isn’t it boring? Don’t we all need some colour in our lives? Believe it or not, the kind of colours we choose for our walls or homes or offices, affects our thinking and personality to a certain extent. It is therefore very important to choose colours with great attention and care.

https://www.paintingservicesingapore.sg/

Avatar_small
Painting service 说:
2021年2月01日 22:27

<a href="https://www.paintingservicesingapore.sg/">painting service</a> The word “interior” as suggests meaning in house painting in other words. Interiors are the ones that make or build our home without which our home is incomplete. How all the furniture’s, hue, texture is important in making a home look beautiful without interiors it would just look dull.

Avatar_small
Techybuzzz 说:
2021年2月02日 02:42

Techybuzzz is a blog where you may find news on the latest technology, internet marketing, and some random kinds of stuff that I like to share with my readers.

Avatar_small
VentsAbout 说:
2021年2月02日 02:45

Vents About is a hub of information. We are providing you with valuable nonprofit information about the world. We are here to bring and elaborate on all the innovative ideas.

Avatar_small
Reviewzila 说:
2021年2月02日 02:48

Review Zila team comes up with the best reviews of Amazon Products to save your time and money by doing complete research on all of the products.

Avatar_small
how many types of ma 说:
2021年2月02日 02:51

Do you know how many types of mangoes Pakistan?

Avatar_small
types of mangoes in 说:
2021年2月02日 02:52

Several types of mangoes in Pakistan</a> like chonsa, langra, dusheri and many more.

Avatar_small
do air fryers cause 说:
2021年2月02日 02:53

Fried foods cause multiple health issues. They not only have higher calories and fats content but also can create acrylamide. the question arises here do air fryers cause cancer? If you need to know the complete details visit airfryyerreviews.info

Avatar_small
aircon servicing sin 说:
2021年2月02日 14:41

One of the leading and most trusted aircon servicing, Repair, Installation & Maintenance companies in Singapore, for years, we have been providing reliable and effective air conditioning services in the region using the latest equipment and technologies.

Avatar_small
waterheaterinstallat 说:
2021年2月02日 15:14

We also provide plumbing & electrical service, aircon servicing, door and windor repair & replacement. We also expert in furniture repair & carpentry work, replacing door knob and hinges for wooden, aluminium glass door, sliding door and other services

Avatar_small
John 说:
2021年2月05日 02:01

<a href="https://agrithing.com/">Agrithing</a> is a free agriculture classified website. Here you can post your machinery classifieds free of cost.

Avatar_small
Agrithing 说:
2021年2月05日 02:02

Agrithing is a free agriculture classified website. Here you can post your machinery classifieds free of cost.

Avatar_small
Free School Manageme 说:
2021年2月05日 02:03

Our School Management System offers a wide range of features, which ensures enhanced compatibility and adaptability.

Avatar_small
I Am Talha Anjum Off 说:
2021年2月20日 18:27

Thanks so much for this information. I have to let you know I concur on several of the points you make here and others may require some further review, but I can see your viewpoint. energy casino

Avatar_small
전설 서구 说:
2021年2月21日 21:01 All your hard work is much appreciated. Nobody can stop to admire you. Lots of appreciation. online kaszinó
Avatar_small
UMAIR 说:
2021年2月22日 15:20

TN HSC Question Paper 2021 TN +2 Model Paper 2021 TN Plus Two Previous Paper 2021 Raj 12th Question10th Blueprint 2022 Paper 2021 RBSE 12th Model Paper 2021 BSER 12th Previous Paper 2021 Punjab 12th Question Paper 2021 PSEB Plus Two Model Paper 2021 Punjab +2 Previous Paper 2021

Avatar_small
전설 서구 说:
2021年2月22日 17:03

Your work is very good and I appreciate you and hopping for some more informative posts. Thank you for sharing great information to us. 온라인홀덤

Avatar_small
전설 서구 说:
2021年2月25日 19:16

The content is utmost interesting! I have completely enjoyed reading your points and have come to the conclusion that you are right about many of them. You are great, and your efforts are outstanding! general organic and biological chemistry 5th ed

Avatar_small
gourmia air fryer re 说:
2021年2月26日 19:14

<a href="https://airfryerreviews.info/5-quarts-digital-best-gourmia-air-fryer/"> gourmia air fryer reviews </a>Gourmia air fryer is a brand name in the world of best air fryer models. They have diversity in their products in terms of capacity as well as price. Almost all best air fryer reviews have mentioned gourmia air fryer models.

Avatar_small
icse board news 说:
2021年2月26日 19:18

<a href="https://flameoftrend.com/2021/02/19/tips-to-score-well-in-the-icse-class-10-mathematics-examination/"> icse board news</a> selina math class 10 must be used by the students in the previous year as most of the concepts are continued in the Class 10 as well. The important concepts are discussed in the solutions in a simple format to build a strong foundation of basic concepts among students.

Avatar_small
전설 서구 说:
2021年3月03日 17:07 Hey There. I found your blog using msn. This is a very well written article. I’ll be sure to bookmark it and come back to read more of your useful info. Thanks for the post. I’ll definitely return. Buy Instagram likes
Avatar_small
전설 서구 说:
2021年3月03日 20:05

Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.. RUAY

Avatar_small
전설 서구 说:
2021年3月05日 01:18 It is my first visit to your blog, and I am very impressed with the articles that you serve. Give adequate knowledge for me. Thank you for sharing useful material. I will be back for the more great post. Clear Tips
Avatar_small
UMAIR 说:
2021年3月05日 16:49

I wanted to merge my PDF file but could not find a good place. Then I came to https://altopdf.com/faq and was extremely satisifed by the expereince and would recommend you to use it as well.

Avatar_small
Digital_Work 说:
2021年3月09日 20:21

When you use a genuine service, you will be able to provide instructions, share materials and choose the formatting style. แทงบอลไม่มีขั้นต่ํา

Avatar_small
dany 说:
2021年3月17日 19:21

You have outdone yourself this time. It is probably the best, most short step by step guide that I have ever seen. hasta yatağı

Avatar_small
dany 说:
2021年3月17日 19:25

It is truly a well-researched content and excellent wording. I got so engaged in this material that I couldn’t wait reading. I am impressed with your work and skill. Thanks. hasta yatağı kiralama

Avatar_small
dany 说:
2021年3月18日 18:18

Superior post, keep up with this exceptional work. It's nice to know that this topic is being also covered on this web site so cheers for taking the time to discuss this! Thanks again and again! vinç kiralama

Avatar_small
dany 说:
2021年3月18日 19:54

Excellent website! I adore how it is easy on my eyes it is. I am questioning how I might be notified whenever a new post has been made. Looking for more new updates. Have a great day! elektronik sigara

Avatar_small
dany 说:
2021年3月18日 20:23

What is an outstanding post! “I’ll be back” (to read more of your content). Thanks for the nudge! açılış organizasyonu

Avatar_small
dany 说:
2021年3月18日 20:37

You understand your projects stand out of the crowd. There is something unique about them. It seems to me all of them are brilliant. havalı hasta yatağı

Avatar_small
dany 说:
2021年3月18日 21:04

A great content material as well as great layout. Your website deserves all of the positive feedback it’s been getting. I will be back soon for further quality contents. izmir yurtlar

Avatar_small
dany 说:
2021年3月19日 05:05

I cannot wait to dig deep and kickoff utilizing resources that I received from you. Your exuberance is refreshing. Sakarya düğün salonları

Avatar_small
John 111 说:
2021年4月06日 14:02 I like your post. It is good to see you verbalize from the heart and clarity on this important subject can be easily observed... 토토갤러리
Avatar_small
John 111 说:
2021年4月11日 19:09 Great Information sharing .. I am very happy to read this article .. thanks for giving us go through info.Fantastic nice. I appreciate this post. 메이저사이트
Avatar_small
John 111 说:
2021年5月02日 18:29 I wanted to thank you for this excellent read!! I definitely loved every little bit of it. I have you bookmarked your site to check out the new stuff you post. Non Woven Tablecloth
Avatar_small
John 111 说:
2021年5月22日 01:06

Attractive, post. I just stumbled upon your weblog and wanted to say that I have liked browsing your blog posts. After all, I will surely subscribe to your feed, and I hope you will write again soon! 먹튀검증

Avatar_small
John 111 说:
2021年6月01日 13:21 Wow i can say that this is another great article as expected of this blog.Bookmarked this site.. 꽁머니사이트
Avatar_small
먹튀검증 说:
2021年6月01日 14:46

I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often.

Avatar_small
마추자먹튀 说:
2021年6月11日 03:34

Fantastic blog! Do you have any tips and hints for aspiring writers? I’m planning to start my own website soon but I’m a little lost on everything. Would you propose starting with a free platform like WordPress or go for a paid option? There are so many options out there that I’m completely overwhelmed .. Any suggestions? Many thanks!

Avatar_small
Top SEO 说:
2021年6月18日 09:50 check this link. its full of sex education. and also useful in your life. and help in your sex life better Mia Khalifa
Avatar_small
Mike 说:
2021年6月26日 15:54

Pakistan is that the fifth biggest maker and therefore the third biggest exporter of mango on the earth . Its dirt and climate empower the creation and market supply of excellent quality new mango over a time of around 5 to a half year. Mango Pakistan, during this way, appreciates a conspicuous situation within the worldwide market. <a href="https://techybuzzz.com/mango-varieties-in-pakistan/">How many types of mangoes in Pakistan</a>? Several<a href="https://techybuzzz.com/mango-varieties-in-pakistan/"> types of mangoes in Pakistan</a> like chonsa, langra, dusheri and lots of more.

Avatar_small
Mike 说:
2021年6月26日 15:55

Pakistan is that the fifth biggest maker and therefore the third biggest exporter of mango on the earth . Its dirt and climate empower the creation and market supply of excellent quality new mango over a time of around 5 to a half year. Mango Pakistan, during this way, appreciates a conspicuous situation within the worldwide market. <url="https://techybuzzz.com/mango-varieties-in-pakistan/">How many types of mangoes in Pakistan</url>? Several<url="https://techybuzzz.com/mango-varieties-in-pakistan/"> types of mangoes in Pakistan</url> like chonsa, langra, dusheri and lots of more.

Avatar_small
Top SEO 说:
2021年10月30日 13:50

The matter you we highlighted above is surely value able for anyone to workout. the concept of your article is very true and It will result in a positive way. Restaurant Management Consulting foods

Avatar_small
jackseo 说:
2021年12月05日 15:45

I found this is an informative and interesting post so i think so it is very useful and knowledgeable. I would like to thank you for the efforts you have made in writing this article. 北美代写

Avatar_small
jackseo 说:
2021年12月05日 15:50

This content is written very well. Your use of formatting when making your points makes your observations very clear and easy to understand. Thank you. 北美代写

Avatar_small
active adult communi 说:
2022年6月14日 16:36

This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free <a href="https://www.007re.net/city/">active adult communities</a>

Avatar_small
ladies online 说:
2022年6月26日 14:36

Nice post. I was checking continuously this blog and I am impressed! Extremely useful info particularly the last part :) I care for such information much. I was seeking this particular info for a long time. Thank you and good luck.

Avatar_small
virtual sex 说:
2022年7月30日 03:57

Excellent website! I adore how it is easy on my eyes it is. I am questioning how I might be notified whenever a new post has been made. Looking for more new updates.

Avatar_small
dark web/deep web/d 说:
2022年8月04日 18:53

Many web sites and pages are made with JavaScript code that is hidden. This means that your computer can only see a part of the web sites that you are trying to access.  dark web links

Avatar_small
dark web/deep web/d 说:
2022年8月04日 19:38

By having an advertising campaign on your website, you can expose yourself and your company to serious financial danger.  deep web

Avatar_small
dark web/deep web/d 说:
2022年8月04日 19:52

Just because you don't have to take the risk of exposing your identity to strangers on the Internet doesn't mean that you shouldn't use these valuable resources responsibly. dark web links

Avatar_small
dark web/deep web/d 说:
2022年8月04日 20:14

For instance, I have friends who are avidly participating in chat rooms as well. It seems that there is no end to the dark web activities that people are engaging in.  dark web sites

Avatar_small
dark web/deep web/d 说:
2022年8月04日 20:30

You also need to be aware of the fact that when you are looking at these links, you are going to get a lot of information on the site. Some of it might be worth reading, and some could be harmful. So just be careful who you associate with and don't give out credit card numbers online! But you can enjoy the dark web if you learn how to work around the dangers.  dark web

Avatar_small
dark web/deep web/d 说:
2022年8月04日 20:45

Chia does point out some good pointers as to why some niches are much easier to promote than others, and you will want to make sure that you take advantage of those opportunities.  work from home jobs

Avatar_small
dark web/deep web/d 说:
2022年8月04日 21:02

The series went so well that it earned the company $4 million in sales in its first three months. The secret to their affiliate marketing success stories?  affiliate marketing success


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter