Unstoppable Domains โ€” AI Assistant

Cron job of less than one minute

SpaceshipSpaceship
Watch
Impact
91
hi

i am using cpanel.. i want to set up a cron job to do something after every 20seconds...


currently the min. time interval is 1 minute.. please tell me how can i set it lower than that??
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
i'm not sure personally if it can be done using cron. Is there a specific reason you need it to run every 20 seconds?

1 possible way although (not ideal) of achieving this is to have a script that is run every minute (as per the cron) but sleeps for 20 seconds then runs again, then sleeps again for 20 seconds and runs again after which it terminates (you will of course have to increase the maximum execution time),
 
0
•••
Every 20 seconds? If it is a big-ish script, that could cause quite a lot of server load.
Why wont every 1 minute do?
 
0
•••
sorry it is a very very light weight script.. (the whole script is less than 15kb and does not cause server load...)
 
0
•••
champ_rock said:
sorry it is a very very light weight script.. (the whole script is less than 15kb and does not cause server load...)

It is not all about the script size.

It is about what it does.

In your case, if you use, DB, then connection must be opened and closed properly.

more desc about what it will do and what do you want to achieve will be useful to help you.

I don't recommend to run a script even per minute.
 
0
•••
ic.. thanks anyways.. i will just ask my server admin regarding the script.. if he does not have any problem then i dont think there is any trouble.. ;)
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Appraise.net
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy โ€” Payment Flexibility
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back