M
M
Maxim Timofeev2015-12-18 16:34:05
Yii
Maxim Timofeev, 2015-12-18 16:34:05

How to create a cron command in isp manager?

In the cron setting, when I create an entry with the php yii mail / fly command, I click execute -> a form opens with two fields command and directory. My command is in the command, and I insert php yii mail / fly into the directory, I run it and get what I need. But the schedule doesn't work. I get Could not open input file: yii ? Where to specify a directory? And How?
In fact, he needs to go to /var/www/wokster/data/yii and run php yii mail/fly there. How to make a team?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Max, 2015-12-18
@MaxDukov

go to the directory - cd
create a file, write
#!/bin/bash in it
cd /var/www/wokster/data/yii
php mail/fly
make the file executable - chmod 700, and shove this script into cron already

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question