Community

Cronjob runs every minute creating a file

jo
josephgodwinke #2

Happy New Year @ruhul11bd

Start by finsing out if you have several instances of daemon running

ps -A | grep crond

Next it would be wise to reduce the time intervals to run it. It seems it runs every minute.

I would assume you have a sink for the command being executed by crond e.g.

* *    * * *   root /usr/bin/wget -O - https://website.com/export-txt.php >> /home/mydomain.com/public_html/output.txt

this part dumps any errors or output to a file accessible at documentroot

>> /home/mydomain.com/public_html/output.txt

All cronjobs are here /var/spool/cron/crontabs you can always view your conrjobs by running crontab -l

Therefore you need to check the script executed make sure its execution ends cause it seems it might be looping.

Ru
Ruhul #3

Could you please help me to write the full command? As I haven’t good knowledge about it.

jo
josephgodwinke #4

Post your cronjob here (copy paste) do not screenshot

Ru
Ruhul #7

I donot know about "ssh terminal or vnc " I just want run cronJob

Ru
Ruhul #9

Connecting to example.com (example.com)|159.203.98.244|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 0 [text/html]
Saving to: ‘process-orders’

process-orders [ <=> ] 0 --.-KB/s in 0s

2023-03-05 20:42:05 (0.00 B/s) - ‘process-orders’ saved [0/0]

Sign in to reply