I
I
iamdivine2018-11-07 14:24:43
Debian
iamdivine, 2018-11-07 14:24:43

View site in cron?

How to make cron view the site every 10 seconds It
is the site at the link and not php /path/

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2018-11-07
@feanor7

I don't know about browsing... I don't really understand what the script does, but once every 15 seconds, run:
*/1 * * * * root /home/mybin/script.sh; /bin/sleep15; /home/mybin/script.sh /bin/sleep15; /home/mybin/script.sh /bin/sleep15; /home/mybin/script.sh
by analogy, you can set 10 seconds, but the pipeline will also have to be expanded

A
Alexander Semenenko, 2018-11-07
@semenenko88

I would not use cron, I would write a script like this:

funktion(){
команды проверяющие сайт
}

for ((;;))
do
   funktion
   sleep 10
done

And this script would run at the start of the machine.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question