MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

Run php script using cronjob / crontab

scmuser created the topic: Run php script using cronjob / crontab
How can i Run php script using cronjob / crontab???

Any ideA?

rajeshkumar replied the topic: Re: Run php script using cronjob / crontab
If your PHP scripts do have executable permissions like 755 or -rwxr-xr-x and they have one of the PHP filename extensions above, then you do not need to specify the php interpreter in the command portion of your cron line, like this:

5 17 * * 2 /myscript.php

The above cron would run myscript.php in your home directory every Tuesday at 5:05PM.

some more example…

28 14 * * * /usr/local/bin/php -q /myscript.phtml
6 3 20 4 * /usr/local/bin/php -q /htdocs/www/x.php
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

DevSecOps: Your AWS Abuse Report – scanning remote hosts on the internet for security vulnerabilities

Incidents It has been implicated in activity which resembles scanning remote hosts on the internet for security vulnerabilities. Activity of this nature is forbidden in the AWS…

Read More

Trigger Jenkins Job using “Build periodically” and “Poll SCM”

Method 1 – AT CERTAIN TIME AKA Build periodically Method 2 – AT CERTAIN TIME BUT Build only when there is Code changes AKA Poll SCM Setting…

Read More

How to Scheduling Task using Cron Job in Laravel Application

Laravel Cronjob offers an elegant Task Scheduling or Laravel Cronjob Scheduling mechanism. Applications require some tasks to be run periodically on the server. It could be creating…

Read More

How to automatically recover Tomcat from crashes

rajeshkumar created the topic: How to automatically recover Tomcat from crashes How to automatically recover Tomcat from crashes Tomcat occasionally crashes if you do frequent hot-deploys or…

Read More

Crontab condition, if a file size is more than 5000K than send an email

scmuser created the topic: crontab condition, if a file size is more than 5000K than send an email find /var/www/vhosts/domain/folder/ -name ‘*.flv’ -size +5000k | grep flv…

Read More

ShellScript to monitor available disk space on AIX

tpatil created the topic: ShellScript to monitor available disk space on AIX #!/bin/ksh # This script monitors available disk space. # This script emails an alert when…

Read More
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
0
Would love your thoughts, please comment.x
()
x