Is it possible to write an script which do a specific command every ten minute? I do not know if this is a loop? For example Every ten minute delete a file name foo on the home directory? or every ten minute open firefox. Update: please how to do that with out CRON I need bash script
Asked
Active
Viewed 539 times
1
-
1possible duplicate of How do I set up a Cron job? – jobin Jun 04 '14 at 05:04
-
@Jobin thanks for link.For do every ten minute on the bash, Am I should learn Cron?Is there any function on the bash which do that? for every ten minute? – Mohammad Reza Rezwani Jun 04 '14 at 05:07
-
1@alex - depends on what kind of loop you like most. Loop with while or if blabla not to recommend. Type with unix-system at good google search words: bash switch case script – dschinn1001 Jun 04 '14 at 05:10
-
@dschinn1001 yes For example I want to open firefox every ten minute.Just that I do not have knowledge about cron, but I think it will some thing on the bash script, which opens firefox or delete a file every ten minute – Mohammad Reza Rezwani Jun 04 '14 at 05:15
-
http://www.thegeekstuff.com/2010/07/bash-case-statement/ – Mohammad Reza Rezwani Jun 04 '14 at 05:30
-
good - you can read and eat salad - ;) – dschinn1001 Jun 04 '14 at 10:31
-
1patience please - deliver script today ... – dschinn1001 Jun 09 '14 at 04:47
1 Answers
3
-
little warning - while could be bad, cause it is only allowed on local machines ... – dschinn1001 Jun 04 '14 at 10:27