G
G
Georgy Khodakovsky2018-02-08 23:13:51
Task Schedulers
Georgy Khodakovsky, 2018-02-08 23:13:51

How to configure cron in ispmanager to seconds?

I need to run a php script every second, what command should I enter to run it?
I did not find a point there for less than a minute interval.
Maybe through SSH it is necessary to somehow implement, if not through ispmanager?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-02-08
@Terriniel

@reboot ~/script.sh

#!/bin/bash
#пока истина
while true; 
#выполнять блок
do 
#запустить скрипт
/bin/php /path/to/the/script.php 
#уснуть на секунду
sleep 1 
# конец блока
done

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question