Coding the cron


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Coding the cron
# 1  
Old 02-04-2014
Coding the cron

how to write a cron that runs for every 2 minute

Code:
* * * * * emp.sh


but it is executing for every minutes. how can i make it to run for only 10 times for in a day

Last edited by azherkn3; 02-04-2014 at 05:57 AM..
# 2  
Old 02-04-2014
tat was awesome zaxxon thanks
# 3  
Old 02-04-2014
I already deleted my answer - anyway here it is again:

This information is easy to google. You can also have a look here:
cron and crontab | Unix Linux Forums | Answers to Frequently Asked Questions

What is awesome about it, I do not know, unless it was meant ironical.
# 4  
Old 02-04-2014
for every 2 minutes in a day zaxxon
# 5  
Old 02-04-2014
Quote:
Originally Posted by azherkn3
how to write a cron that runs for every 2 minute and only 10 times in a day
azherkn3,


It is the rule of this forum to search the forums before asking questions.

If you continue to break the rules, you will receive more "reminder" points, and you will eventually be banned as you continue to accumulate these points.

When you join a community and ask others to help you, you should, at the very least follow the rules you accepted when you joined the community.

Did you even read the rules?

Please answer my question before you continue posting here and in other threads.

Thanks.

Moderator's Comments:
Mod Comment Update: User sent series of PMs explaining they did not read the rules. Last warning. Read the rules and follow them or you will be banned. The rules are here for a reason; and everyone benefits from them.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. What is on Your Mind?

Naive coding...

"Naive coding." (Apologies for any typos.) I came across this phrase a couple of weeks ago and it has made me decide to set off a discussion. I had never heard of it before but I did some research and discovered that I probably fall into this category. My phrase is: "I code to work, not... (10 Replies)
Discussion started by: wisecracker
10 Replies

2. Windows & DOS: Issues & Discussions

Need help with coding

HI, Can some one guide me how to make changes to the script below so that it can load the history of a program to IT server ? Format of data: YYYYMMDD065959.dsk.log YYYYMMDD235959.dsk.log currently both are loaded together. Need to separate them as above format. Thanks in advance. ... (2 Replies)
Discussion started by: crazydude80
2 Replies

3. Shell Programming and Scripting

Need help with coding

HI, Can some one guide me how to make changes to the script below so that it can load the history of a program to IT server ? Format of data: YYYYMMDD065959.dsk.log YYYYMMDD235959.dsk.log currently both are loaded together. Need to separate them as above format. Thanks in advance. ... (1 Reply)
Discussion started by: crazydude80
1 Replies

4. Shell Programming and Scripting

Coding in Phyton

I have the following Phyton script and want to print something if the option was selected For example if the user uses --npop=12, I want to check if the user has inputted --npop and do if npop selected, print npop Or if the user puts --fdata=npt02.dat I print something like if fdata... (3 Replies)
Discussion started by: kristinu
3 Replies

5. Programming

Help for coding this programme

for a floating-point array x whose size is n, find the geometric mean.. GM =n x1.x2.x3...xn (2 Replies)
Discussion started by: allyjaah
2 Replies

6. UNIX for Dummies Questions & Answers

sed coding

What this command sed "/*$/d" means? izzit add commas to numeric strings, changing "1234567" to "1,234,567" ? (1 Reply)
Discussion started by: rita1985
1 Replies

7. UNIX for Advanced & Expert Users

can I use this coding

I apologise because I had pasted this question in the newbies forum first (because i am a bit of a newbie) but thought it might be better suited in here if i have to sepearate parameters can I use this syntax especially the or part (||) and is this correct if (6 Replies)
Discussion started by: w33man
6 Replies
Login or Register to Ask a Question