A
A
Artyom2014-08-24 20:21:05
PHP
Artyom, 2014-08-24 20:21:05

Is it possible to configure and enable crontab via php?

Actually the question fit in the title.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bahek2462774, 2014-08-24
@artem328

You can (If the user on whose behalf the script will run has the appropriate rights)
Edit /etc/crontab and
restart the cron from php (if necessary).

shell_exec( тут любая команда  - например /etc/init.d/cron restart )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question