EASIEST Cron job vs Crontab Tutorial for DevOps Engineer (Linux Hindi Part-6)
ฝัง
- เผยแพร่เมื่อ 14 ก.ค. 2024
- DevOps Live Batch 7 starting June 29th bit.ly/devops-batch-7
Cron jobs are very important and a part of Day to Day activities of a DevOps Engineer.
In this video you'll make your first cron job and also run bash scripts in crontab.
00:00 Intro
01:10 What is Cron
02:10 Cron vs Crontab
03:00 Crontab explained by example
07:00 Making your first cron job
10:30 How does a devops engineer thinks
13:15 Execute bash script crontab
19:00 Outro
-
Watch Linux For DevOps Engineer Playlist: • Linux For DevOps Engineer
Watch DevOps with AWS Playlist: • DevOps Engineer AWS
-
✨ INSTAGRAM: @train_withshubham
/ train_withshubham
👨🏻💻 GITHUB:
github.com/LondheShubham153
💼 LINKEDIN:
/ shubhamlondhe1996
👨💻 DISCORD: @TrainWithShubham
/ discord
📩 EMAIL:
trainwithshubham@gmail.com
-
About -
TrainWithShubham is the channel created with the idea of bridging up the gap between academical learnings and corporate world. We all know that schools and universities doesn't necessarily prepare us for the corporate world. There's a huge difference between what's going on in the industry and what's being taught to us in schools and colleges.
We are here to prepare you for the world with content based on my industry knowledge & experiences as a developer.
This man is top notch 👏
The way he teach..
Wow! Totally Surprised 😯
woahh.. thanks a lott..
comments like these makes my day..
please do share in your circle 😊
This is 💯 % true ❤❤
So much +ve vibes while watching your videos. Started with one video and cannot stop seeing all of them. Good work bro. Keep going. . . !!!
This made my day ❤️✨️
Really you are superb..... Previously I feared when scripting came into my mind but now you make it easy for me thanks devops wala bhaiya
Glad to hear that
Thanks Shubham
Thanks Sir
Today completed all 6 Videos
You are gems...):
You are amazing 😍
Thank you for making DevOps easy to us .❤
Bhai maza aa geya ehh series dekh ke... Confidence boost ho geya...✨✨💖💖
ahhan
I have search many videos for cron concept clear but this video amazing for me cron concept clear Thank a lot
ahaan.. thank youu
Apke khasiyat ye he ke... Aap hume bahut asan bhasha me batate ho.....difficult cheej aap easy kar dete ho...
Bas aisey hi asaan bhasha me Devops Project bana raha hu :)
Bas abhi release hui hai
Pakka like karna padega Bhayya, aur no questions....aap bahut si talented ho...aap aisa bahut videos kariye, hum sikenge aapse🎉🎉
this means a lot to me, thanks :)
Thanku so much devops wale bhai 🥰 you are great
thanks dost
you are teaching us with passion and that's what make your teaching so good
So nice of you
i love teaching
Bhai bhai bhai tum toh lord ho bhai 😚😚😚😍thanks for this vedio lord of devops
thanks
bro i have completed all your Linux Series. these are really superb and specially the cron job part.. bro plz plz i request you to make more videos on devops.. you are doing really great ..thanks a lot again bro..YOU ARE SUPERB !!!
Thanks, yes glad you liked it
Really Devops wala bhaiya pura mast and very intresting video.....
thanks a lot
maza agaya bhaiyya playlist dekh k
Mujhe toh itneee saare comments dekh ke maza aa gayaa
Great content man learning devops has never been this easy !!❤
Happy to hear that bhaiii
Just finished watching the whole playlist . With your guidance, it was easy to follow along. I got to learn a lot.
Thank you so much for making these videos. Waiting for more new videos! ❤
Starting with the Devops project playlist in the meantime.
ahaaan.. glad you liked it..
happy learning Souparna..
Sir literally you are amazing, me jab se aap ka channel dhoonda hai bus DevOps k Liye aap k hi videos dekhi ja Rahi , ku k aap bohat ziada achy se explain kerty Hain hr cheez ko♥️
kya baat hai dost..
thank you so much
@@TrainWithShubham your welcome sir 🤗
Very Useful Playlist🙌👏
Glad you liked it
The way you teach in your videos..
I'm damn sure you will get millions of subscribers soon.
oh bhaai.. thank you sooo much.
I love teaching and be it a million or one of them, I will still have the same joy of teaching technology and things
Really thanks for your all video
It's my pleasure
Awesome Explanation Sir ...
thanks a lot for watching
Very clear explanation Shubham sir..👏
Thanks a ton
It helped me a lot.Thanks a lot.
Glad it helped
As promised, thank you for upload valuable video 🙏❤️
So nice of you.. thanks a lot for your words.. hopefuly video me maza aaya hoga
debraj wanted to connect with you regrading few queries can u share ur emailid. Thanks!
Cron Job concept clear. Thanks a lot
That's so nice to know:)
Very nice video.... Your voice like magic.... It's very intresting videos...
Thanks a lot 😊
What an explanation bhai amazing
thanks a lot.. hope you find it helpful
Thanks bro.
very good 20/10.
ahaan
Great.😍😍
Thanks 😊
Great Explanation.. anyone can understand easily
That's the main goal of this channel
@@TrainWithShubham hope you can teach using english language sir.
great learning buddy !!
Glad you liked it
Awesome video 🔥🔥
Thanks a lot Omkar bhai🔥
Great explanation 👏👍👍👍
thanks a lot bhai
at the end aesa laga devops bhaiyya aur padhao time jaldi nikl gaya
thanks bhai.. next week phirr aa jaaunga padhaane
Wonderful
Thank you
Bhayya, I'm your new subscriber, from Andhra ☺️
Thank you so much dost
nice session !!!!1
thanks a lot
Seriously Man ! You makes Everything So Easy to Learn .
Is There Any Dedicated Video For Nagios And kubernetes for Devops You Already have or Going to make in future ?
please let me know .
And Keep Up The Good Work . 👍
Thanks a lot
Will upload soon
Shubham bhayya, I want to learn powershell scripting from you, if possible....anytime you think that is workable for you....However, thank you so much so far for so many fantastic videos from you... respectfully, Satish!! 🙏🙏☺️
this means a lot to me, thanks :)
Loved all your videos.
By the way your voice is similar to Varun Dawan 😀
arey bhaaai.. thank you sooo muchh yaar.. maza aati hai sunn ke ☺️
need more videos on this playlist
Definitely.. abhi devops waala khatam karke idhar daalta hu
Thank you from Bangladesh.
much love bhai❤️❤️❤️
Perfect 😎 ab shubham bhai se padhega india tbhi toh badhega india
Bhai goal toh vahi hai.. India ko aware karna hai about the tech opportunities
Nice content
Thanks a lot Nurain ji , means a lot to me.
Finally someone know that cron exists
Hahaha.. thanks bhai.. I will bring more and more such topics, please keep learning and sharing
Thanks bro
Welcome bhai... Thanks for watching
Samjh gaye 🎉
je baaat... aisey hi samjhte rahiye ✨️🥳
Hai Shubham,
a very nice video, could you please share the list of cronjobs that you were used in real world scenario, it will be very helpful to me and others
thanks in advance
sure, I'll do that
Bro please upload more videos❤
I will try my best
Hi your videos are good to acquire knowledge. Thanks for all dedication. I have one question outof linux please respond to it "How to change endpoints without writing any manifest file"
thanks a lot.. I'll try reading more about it
Bhai mail ke uper video bnao
Sir please make more videos on shell scripting
I will
Sir, backup_day wala line %m%Y ye wala line samajh nhi aaya.
Otherwise aap itne smile se padhate ho ki sab aasan lgta hai.
Thank u sir keep smiling . 🙏💓
vo formatting ke liye use hota hai.. jissey ki mai date ko month year ke format me daal paau.. %m month and %y year ke liye
Desperately waiting for next videos.
When it will get uploaded?
soon soon..
Great playlist sir... sir DevOps ke liye itni shell scripting aani sufficient hogi ya aur bhi padhna hoga, agar aur bhi padhna ho toh please topics suggest kr dijiye...
aur lagega.. thoda aur advanced
Hello Bhaiya,
maja aagaya aaj bahut kuch seekha.😇
par ek doubt hai ki agar Hour mein hum 4 rakhenge to kya 5 bajne ke baad logs create honge 🤔?
thanks a lot bhai
when we set time for job to execute , we encounter the issue of time zone ,India Standard Time (IST) is 5:30 hours ahead of Coordinated Universal Time (UTC).
please tell us the easy way to understand this ...
Hi shubham ,
Is the cronjob we need to use in k8 & where? Could you explain
@TrainWithShubham can you please make a video on the term used on bash script or in corn like & 2>1 /dev/null.....Something like this...means why it is used, how it is used etc
Which terms, I did not get it.. I'll definitely make videos on it
@@TrainWithShubham He is saying about the usage of 2&>1 in shell script.
Usage :- 2&>1 & to use 2 commands at once at a time.
Else google it.
brother i have used the same code to check disk but in loop where we compare usage with 90 there comes an integer error that it says it cannot compare two different data types what to do ....i have searched and tried a lot of ways but nothing works for me
is video ka part 2 to banta hai bhai please...
Totally boht jald
Ha Shubham bhai cron aur crontab mein kya antar hai kaise kam Karta Hai bilkul samajh mein a raha hai.
badhiyaaa
bhai ye dev loops kab bane the ya banaye the ????
because m 1st vedio se follow krra hu pr dev /loops kha bane ye ni dikhra?
Plz ans
Hi, thankyou for sharing your knowledge
just wanted to ask the difference between the crontab you showed earlier which was in /etc/crontab and the one which we edited through 'crontab -e'
The difference is that the crontab command is the interface provided by the system for users to manipulate their crontabs. The /etc/crontab file is a special case file used to implement a system-wide crontab. /var/spool/cron/crontabs/$USER (or whatever the path happens to be) is an implementation detail.
dear sir how can be set am or pm wise timing set
bhaiya yt-dlp pe upar ek video banao na.
sure
Sir git, GitHub ke videos nhi hai es playlist mai
Bhai ek video banavo how to read from Oracle database and put that data in Excel file using crontab every second or hour
nice
@@TrainWithShubham Bhai nice nahi dekho na ho sake to 3 din se padh Raha hu kuch samaj nahi a raha
Hello , check disk log file aapne create nhi kiya he kya wo automatic create hogi
nhi.. banani padegi
Can you tell how to stop the running crone jobs?
Provide us some questions to solve on our own
surely, watch the advanced one too
Pls upolad RHCSA & aws associate level full cource videos....
I will try for sure
Hhai php me run krwana he crontab help me
Aapke ki bhi script mai error aare hai , uske baad run ho jaati hai, but in my case only giving error like - integer expression expected, how will solve sir
ask on telegram
Hi...
Whether we have to install Crontab. To write a crontab script to check the heap memory...
yes, it has to be installed
sir when are u going to upload next video😀
this week only
Hi sir , it is giving error in if condition, integer expression expected
ask in telegram
I have done the same but my cron job is not running ... On checking the status I found error :bad command; while reading /etc/cron.d/crontab and same error with /etc/crontab
Please help with this
I'll check, you can ask in telegram channel
Aweome playlist , just wanted to ask will I loose all this data if I stop and restart my Ec2 instance?
If you terminate instance, yes.
If you just stop and start, No.
@@TrainWithShubham then what would you suggest, should we leave the instance running 24/7 or should we stop it after we're done using it?
@@yashraj7188 stop after use
Sir my cronjob doesn't work
Bro konsi playlist mein hai deployment on docker wala video mil nhi rha 😅
Django waali
full backup on sunday and incremental backups from mon to saturday. the backup files should be retained for 14 days. iske liye kese cron job setup karege , mene script to create kia for mysql backup, but stuck in that (file name as mysql_back.sh) and you used (cut -d) what is used of -d ??
aisey tasks toh office me dete hai
@@TrainWithShubham yes bro , m ryt now working on task for interview process, so mera script done ho gaya aapke video dekh kar + crontab also created for mon-sat , but stuck for sunday full backup
sir if my ubuntu machine is stopped then will crontab execute my cron jobs??
no, it won't execute
@@TrainWithShubham thank you sir
When will the live DevOps Next Batch begin?
July me
Sir if in a script it requires password then how will we do example sudo command or doing ssh in other server
we can set permisions.. then sudo
is this end of the playlist?
season 2 will return
@@TrainWithShubham thanks Shubham :)
sir is this playlist complete now ?...... or in future are you going to uoload some more videos? ....i have been waiting for 1 month
no.. not yet.. I was on a break
@@TrainWithShubham ok sir ✌️
Devops bhaiyya need a vid on disk partition
karte hai prabandh
@@TrainWithShubham 🤗
Approx kb
Itna lalach acha nhi Ashish😜
@@ashishkarad8960 hahahaha.. friday bhaii
@@TrainWithShubham thnx alot
@@TrainWithShubham LVM
hi sir i am DevOps engineer and you tech to student essential to become a good devops
Yes, I keep giving tips in these videos
What will be corn for 90min bhaiya
google it
Bhai help
Sir, mera ek friend Diploma Civil kiya hua hai, agar AWS and Devops kiya tho job milne ka chance hai, ya phir degree compulsory hai??
Oh kk. Thanks bhai
@@praveensindhu35 no issue Bhai.....bindaast kr.... comment isliye delete ki kyoki thoda jyada hi Bata Diya tha uske bare me...aur degree chhodne wali baat bahot se logo ko pata nhii hai uski....
Yes chances toh hai.. its all on skills. jitne zyaada skills gain karoge utne hi zyaada chances hai Job milne ke
sir i need job as Linux fresher as
learn and earn
That's great.. keep adding new things to your skills.. you can get good jobs if you have great skills in your resume and professional career
10:28
:)
Varun dhavan jaisa dikhta hai bhai tu
Mera 2nd cron job nhi hua😭
areyy .. kyu ji?
mera bhi nhi chla tha jab first corn job run kiya tha
* * * * *
abhi chala?