LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-13-2016, 12:49 AM   #1
RithanyaLaxmi
LQ Newbie
 
Registered: Feb 2016
Posts: 3

Rep: Reputation: Disabled
Running cron job on every Monday, Wednesday & Friday of a week


Hi,

I want to know how I can run a cron job every Monday, Wednesday & Friday in a week?Also how I can create a cron job whether it should be created as .sh file which in turn will have the cron expressions to invoke another .sh file which eventually trigger the load? How this cron job will be invoked automatically whether I need to copy this cron job which will be in .sh format in a particular directory from where it will be automatically invoked? I am new to linux hence please help me out in this?


Thanks
 
Old 02-13-2016, 01:14 AM   #2
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Location: Non. Je suis propriétaire – No. I am an owner.
Distribution: Apple-selling shops, markets and direct marketing: customers find the farm and buy apples.
Posts: 1,608
Blog Entries: 40

Rep: Reputation: 796Reputation: 796Reputation: 796Reputation: 796Reputation: 796Reputation: 796Reputation: 796
Quote:
Originally Posted by RithanyaLaxmi View Post
I want to know how I can run a cron job every Monday, Wednesday & Friday in a week?
That is the easy part of “running a cron job”. Which kind of trouble are you facing, when you apply the instructions that you get from he man pages (man crontab and more about the composition of cronjobs in man 5 crontab). Have you already configured other cron jobs on your system? In that case, how is this one different or more complicated?
Here is a version of the manpage from section 5 in an online version: crontab(5). English is not my mother language and the authors of these help files have done a great job explaining just anything. PSE try first to get the information from there. Come back if it isn't clear.

EDIT: I forgot to tell you that the easiest way to access to your personal crontab file should be the command
Code:
:$~crontab -e
Quote:
Also how I can create a cron job whether it should be created as .sh file which in turn will have the cron expressions to invoke another .sh file which eventually trigger the load? How this cron job will be invoked automatically whether I need to copy this cron job which will be in .sh format in a particular directory from where it will be automatically invoked? I am new to linux hence please help me out in this?
I have problems to understand this part of your description, but venture that, basically, you want to call one shell-script from another. PSE confirm before we go ahead.

Last edited by Michael Uplawski; 02-13-2016 at 01:22 AM.
 
Old 02-13-2016, 02:50 AM   #3
RithanyaLaxmi
LQ Newbie
 
Registered: Feb 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
Just I want to know how I can create a cron job that will automatically run on every Monday, Wednesday & Friday @ night 12 am USA PST? Any samples on this is really appreciated.
 
Old 02-13-2016, 03:01 AM   #4
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Location: Non. Je suis propriétaire – No. I am an owner.
Distribution: Apple-selling shops, markets and direct marketing: customers find the farm and buy apples.
Posts: 1,608
Blog Entries: 40

Rep: Reputation: 796Reputation: 796Reputation: 796Reputation: 796Reputation: 796Reputation: 796Reputation: 796
Quote:
Originally Posted by RithanyaLaxmi View Post
Just I want to know how I can create a cron job that will automatically run on every Monday, Wednesday & Friday @ night 12 am USA PST? Any samples on this is really appreciated.
Examples. Do this :
Code:
:~$ man 5 crontab
Scroll towards the bottom until it says “Examples”: Voilà: Examples.

Then, come back and tell us, why they aren't “good examples”.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set cron job to run every Friday at 09PM? paulus89 Linux - Newbie 1 07-08-2014 03:59 AM
Running a job the first monday of the month? yanik Linux - General 12 03-05-2008 05:08 PM
Skype & MySQLCC working Friday, then all segfault Monday... rylan76 Linux - Software 3 10-09-2007 07:51 PM
Cron Job to run on 2nd and 4th Friday of each month rust8y Linux - General 1 06-25-2007 09:07 PM
Cron job to run every monday wednesday and friday...? init Linux - General 4 07-29-2004 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration