0
votes
1answer
109 views

Simple script run via cronjob doesn't work but works from shell

I am on shared hosting and I'm trying to schedule cronjob to run every now and then. Via cPanel I scheduled to execute my script but even though that according to my host support the cronjob runs, the ...
0
votes
0answers
29 views

Cpanel cron timing issue

I am running a cpanel server. I set a cron task to run every minute. So in my cron tab I set like below- * * * * * php /path_to_script >/dev/null 2>&1 Initially the task added ...
0
votes
1answer
143 views

Cron Job Command To Delete 0 Byte Files

I need to have a Cron Job, that when it runs automatically deletes all of the files inside of a folder that are exactly 0 bytes. The script I am using allows users to enter their username so it ...
1
vote
3answers
73 views

Prevent users from using the same cron schedule?

I've a lot of users in my server using exactly the same cron schedule and this is causing high server load. Can we prevent this? For example, if there's x numbers of users that use the following cron ...
1
vote
1answer
330 views

How to edit multiple cpanel user cron jobs at once?

I'm using cat /var/spool/cron/* to view all cron jobs created by all cpanel users. Is it possible to edit its output just like editing via nano and hit save?
0
votes
2answers
1k views

In CPanel, cron job is not being executing and not sending any mail

though many of us has asked many question related to cron jobs, let me ask my one... I want to execute a PHP script periodically. As a cron command I'm using: php -q ...