cPanel beginner tutorial 10 - Cron Jobs

  Рет қаралды 121,550

Quentin Watt Tutorials

Quentin Watt Tutorials

Күн бұрын

In this tutorial I show you how to set up a cron job that will run a script on your site every few minute. You can also set cron jobs to run every hour, every day, once a week or once a year.
/* FILE PATHS
THIS WORKS
/usr/local/bin/php -q /home/yourCpanelUsername/public_html/filename.php
DIDNT TRY THIS
/usr/bin/php -q /home/yourCpanelUsername/public_html/filename.php
THIS DIDNT WORK FOR ME
/home/yourCpanelUsername/public_html/filename.php
*/
Playlist description
---------------------
In this tutorial series we'll be learning how use the everyday tasks a web developer or webmaster needs to know. These tasks include managing files, MySQL databases, email accounts and more.
Links
---------------------
Visit this tutorial on my website: www.jozituts.com/
Follow Jozituts on social media:
facebook: / jozituts
twitter: / jozituts
youtube: / jozituts
Follow my personal social media pages:
facebook: / quentin.watt
twitter: / quentinwatt
youtube: / quentinwatt

Пікірлер: 88
@sankyeat
@sankyeat 7 жыл бұрын
This entire series has been fantastic. No one else, that I could find anyway, has broken down the web hosting side of things as well as this. Well Done and please keep up the content for beginners! :)
@ShivamVerma786
@ShivamVerma786 8 жыл бұрын
I like this man... Seriously That is the Kind of Tutorial that I need the most.
@sahujiofficial7834
@sahujiofficial7834 4 жыл бұрын
Perfect tutorial series for developers or for whom who want to be... Thanks man🙏
@QuentinWatt
@QuentinWatt 4 жыл бұрын
Glad you liked it!
@ndagijimana
@ndagijimana 6 жыл бұрын
You Guy!!! thank you, your video has really helped me achieve what i wanted thought religiously used it without understanding the use of '-q' in the path because thats what i was missing in my command.
@successfulpodcast
@successfulpodcast 3 жыл бұрын
Thank you. Cron jobs are perfect for my podcast network.
@manigfoodhub2120
@manigfoodhub2120 Жыл бұрын
Thankyou so much. this is clear video to archive my task.
@AnishforU
@AnishforU 6 жыл бұрын
Thanks bro....its works like a charm....
@the-beauty-of-creativity2083
@the-beauty-of-creativity2083 Жыл бұрын
Great video! thanks
@nander1988
@nander1988 4 жыл бұрын
I liked the video but I have to say, what's up with those clickfarm comments? I think this is the worst I've seen of them and I spend way too much time on KZbin. Dont go down that path man. Just keep making videos like this and you'll be fine😉
@KnownTechnical
@KnownTechnical 6 жыл бұрын
Thanks Bro.......for increase my knowledge about it. Have a long life.
@Ace-ij6ec
@Ace-ij6ec 6 жыл бұрын
Woow....i like this man the kind of tutorial i need
@nandomkumchi4377
@nandomkumchi4377 4 жыл бұрын
Thank you so much mahn... this was greatly helpful....
@QuentinWatt
@QuentinWatt 4 жыл бұрын
You're welcome!
@fawadazeem2248
@fawadazeem2248 4 жыл бұрын
Great! Worked for me
@arsalanajmal
@arsalanajmal 8 жыл бұрын
Thank you very much. It saved my time
@edenfesseha5472
@edenfesseha5472 7 жыл бұрын
I found the video helpful. Thanks !
@saikrishnasiliveru4350
@saikrishnasiliveru4350 6 жыл бұрын
Thanks for your great knowledge.
@alexandruconstantin6627
@alexandruconstantin6627 8 жыл бұрын
nici video. for me it worked only by puting php -f before the path: php -f/home/CpanelUshername/public_html/script.php
@juanchaher1810
@juanchaher1810 6 жыл бұрын
I just learned how to automize half of my work
@websitedesigner9442
@websitedesigner9442 7 жыл бұрын
Hi, its working thank you so much.
@emmanuelguerreronavarro1973
@emmanuelguerreronavarro1973 4 жыл бұрын
Thanks!
@tanvirahmed8489
@tanvirahmed8489 7 жыл бұрын
Nice tutorial. Very helpful.
@gameeverything687
@gameeverything687 4 жыл бұрын
Very good tutorial. I'll be doing email next after I figure this out. So I set up a counter script on my site and it's just still not increasing. It increases when I go to the page, but here's the cron job: /usr/local/bin/php -q /home/zafadadynamic/public_html/testing/testing_cron_counter.php It's just a no-go. I game it a little time and it just doesn't work. :(
@muzzamilshahzad4427
@muzzamilshahzad4427 8 жыл бұрын
Thank you very much for this great tutorial.....:)
@RiddimDubstep
@RiddimDubstep 7 жыл бұрын
For me worked like this: php /home/user/public_html/trackname.php >/dev/null 2>&1 P.S. You can set cron jobs for less than one minute. Oh, well. There is a workaround for this. Do 2 PHP functions and inside each other set an if clause for which you set a counter. Then execute the second function from the first one and the first function from the second one. When the if clause not met (if x < y for example) exit() the function. Then set sleep() for every few seconds you want. For example, set the if clause to 10 and sleep() to 6. If x is not < y then it exit(), else, it executes the if content.
@RiddimDubstep
@RiddimDubstep 7 жыл бұрын
Note: That PHP will run on background on that period of time. Better set the cronjob to one minute and the PHP as I sad rather than set the cronjob to one hour for example, and set the if clause to 600 (for one hour). You'll run into timeout.
@renatojunior4571
@renatojunior4571 5 жыл бұрын
Very thanks bro
@divyangkala
@divyangkala 3 жыл бұрын
I was unable to set a cron job.... the error comes the path name and the : permission denied
@jhonbarera8080
@jhonbarera8080 3 жыл бұрын
Great video. I have a concern! at my level I want to make a specific function contained in the php file run since there are other functions also in the file. how can I write the command then
@akanudosen2408
@akanudosen2408 6 жыл бұрын
Cool tutorial man
@jaydeepsapariya8532
@jaydeepsapariya8532 3 жыл бұрын
sir i can't create a file in my live server using cron job.. plz help me how do i solve it.? i want to put file in server as per cron job set by me... everything i make it but not working how to solve it.. plz.
@stefanbirsan3320
@stefanbirsan3320 Жыл бұрын
thanks!
@UK-dx1qi
@UK-dx1qi 6 жыл бұрын
Thanks for this!
@raylinanthony
@raylinanthony 8 жыл бұрын
Thanks for this great tutorial. SendGod!
@shaogatalam5022
@shaogatalam5022 4 жыл бұрын
Nice video... it would be great if you make a 2020 version video for this.
@QuentinWatt
@QuentinWatt 4 жыл бұрын
Noted!
@j_nkindi
@j_nkindi 8 жыл бұрын
Thanks really useful,!
@ashiquepuliyakkode5584
@ashiquepuliyakkode5584 6 жыл бұрын
Thanks... This worked.... :)
@devsabuj4818
@devsabuj4818 3 жыл бұрын
How to run cronjob starts 10am to end 10 pm everyday?
@dedelifestyles7836
@dedelifestyles7836 6 жыл бұрын
Very informative
@kosterix123
@kosterix123 6 жыл бұрын
Skip the blurb, starts at 2:22
@uweopfern
@uweopfern 6 жыл бұрын
running this simple is the same as running script which has POST method in it?? if they different how can i configure cron job on script which has POST or GET method
@vikash151990
@vikash151990 7 жыл бұрын
very good tutorial
@camilleschori
@camilleschori 4 жыл бұрын
thx man
@Shinerweb
@Shinerweb 7 жыл бұрын
Thanks
@thecastiel69
@thecastiel69 7 жыл бұрын
05:01 maybe this will wor......give executable permission to your php script and use the below line into your top of the php script #!/usr/local/bin/php -q
@zumabibi
@zumabibi 7 жыл бұрын
You can set cron jobs for less than one minute
@kylebrownbridge
@kylebrownbridge 6 жыл бұрын
Thanks Bro. Just deployed a crypto trading bot on on cron jobs!! wahooo . automation
@Furkankeskinnn
@Furkankeskinnn 7 жыл бұрын
thank you so much
@AmmarAlfadel
@AmmarAlfadel 6 жыл бұрын
Please How i can do Cron Jobs per 1 minuet hosgatore hosting ???
@waliddu62
@waliddu62 8 жыл бұрын
Thanks a lot
@sakshigupta1884
@sakshigupta1884 3 жыл бұрын
hlo sir could you please help me automating python script using cron jobs in bluehost cpanel?
@qazifaizan4271
@qazifaizan4271 7 жыл бұрын
great work can you tell me its working once per minute when i am changing it into once per day and giving custom time it is not working please can you tell .
@MatchaOppa
@MatchaOppa 8 жыл бұрын
Hi, I just started with Magento 2 and it says "One or more indexers are invalid. Make sure your Magento cron job is running." what am I supposed to do?
@juanchaher1810
@juanchaher1810 6 жыл бұрын
awesome
@mohamedashif7487
@mohamedashif7487 5 жыл бұрын
Thanks a lot :-)
@nilkarhe
@nilkarhe 7 жыл бұрын
What to do if Cron Job is not present in Hosting Panel ??
@vinothkannan7686
@vinothkannan7686 7 жыл бұрын
very helpful
@PaulDickson7
@PaulDickson7 5 жыл бұрын
What does the -q do?
@МохамедРусланович
@МохамедРусланович 5 жыл бұрын
how to see the results after running command? (error or bugs etc...)
@lepystudio8974
@lepystudio8974 3 жыл бұрын
you will have to manually create a log file
@klabnif5735
@klabnif5735 9 жыл бұрын
good vid.. thanks
@DJOblion
@DJOblion 8 жыл бұрын
I'm beyond confused, how to I access those scripts? I;am clueless I need some help.
@AliBazen
@AliBazen 7 жыл бұрын
This is good
@JavaAnatomy
@JavaAnatomy 8 жыл бұрын
/usr/local/bin/php -q /home/tnjcoalp/public_html/quick/cron_job/index.php this is not working for me. Mine also have to update the database. I am using cpanel 56.0.18, probably the latest. Need help.
@QuentinWatt
@QuentinWatt 8 жыл бұрын
Contact your hosting provider. Maybe there is a slight mistake in the file path that they can help you with.
@GboleKepo
@GboleKepo 8 жыл бұрын
Thank You.................... :D
@parasnshah2899
@parasnshah2899 5 жыл бұрын
Sir how to call automatically api call using cron job in laravel
@QuentinWatt
@QuentinWatt 5 жыл бұрын
lmgtfy.com/?q=how+to+set+up+a+cron+in+laravel
@sahartal9503
@sahartal9503 7 жыл бұрын
thanks :)
@chiragchauhan6694
@chiragchauhan6694 7 жыл бұрын
Good
@chg_m
@chg_m 7 жыл бұрын
YAYAYAYAY
@jorgemendez8915
@jorgemendez8915 6 жыл бұрын
Not certain about the points made but ,if anyone else trying to find out how to learn ukulele try Cypouris Amazing Uke Coach ( search on google ) ? Ive heard some pretty good things about it and my colleague got amazing success with it.
@abdulhakim9721
@abdulhakim9721 6 жыл бұрын
interesting points ,if anyone else wants to learn about ukulele lessons online try Nadazma Ultra Uke Helper (do a google search ) ? Ive heard some interesting things about it and my m8 got great success with it.
@abedachouak5874
@abedachouak5874 6 жыл бұрын
interesting points ,if anyone else wants to discover how do you treat psoriasis try Nadazma Awesome Psoriasis Helper (Have a quick look on google cant remember the place now ) ? Ive heard some interesting things about it and my friend got great success with it.
@ridgealvin3570
@ridgealvin3570 6 жыл бұрын
I like this man... Seriously That is the Kind of Tutorial that I need the most.
@a.yashwanth
@a.yashwanth 5 жыл бұрын
Copy paste?
@megacryptertuto9701
@megacryptertuto9701 7 жыл бұрын
Nice tutorial. Very helpful.
@a.yashwanth
@a.yashwanth 5 жыл бұрын
I like this man... Seriously That is the Kind of Tutorial that I need the most.
@QuentinWatt
@QuentinWatt 5 жыл бұрын
Thank you Ande 🙌
cPanel beginner tutorial 11 - Creating an email account
8:50
Quentin Watt Tutorials
Рет қаралды 103 М.
Cron Jobs For Beginners | Linux Task Scheduling
12:47
Akamai Developer
Рет қаралды 234 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Run a PHP Script Automatically at a Specified Time
6:47
Dave Hollingworth
Рет қаралды 197 М.
cPanel beginner tutorial 2 - introduction to cPanel
12:45
Quentin Watt Tutorials
Рет қаралды 131 М.
Scheduling Tasks in Node.js | Cron Jobs in Real Projects
22:19
Dipesh Malvia
Рет қаралды 7 М.
Learn CPANEL in 14 Minutes!
15:30
Stefan Mischook
Рет қаралды 104 М.
cPanel beginner tutorial 1 - How to purchase hosting
15:13
Quentin Watt Tutorials
Рет қаралды 223 М.
How To Create a Serverless Cron Job
6:01
Enrico Portolan
Рет қаралды 12 М.
I tried every FREE website builder. This is the best
7:58
Steve Builds Websites
Рет қаралды 467 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН