0

I would like to handle when a fabric script requires a response.

Eg. Apply the above migration? (yes|no) [no]:

The fab function that creates this prompt:

local("php root/protected/yiic.php migrate")

3
  • If by "handle" you mean "supply an answer", don't forget the POSIX command yes. Commented Sep 10, 2015 at 14:50
  • @mdurant Be useful and edit the question rather Commented Sep 10, 2015 at 20:27
  • but I really don't know what the question means, I am guessing. Commented Sep 10, 2015 at 20:45

1 Answer 1

1

Try to disable interactive mode during running command:

local("php root/protected/yiic.php migrate --interactive=0") 

From docs:

interactive: boolean, specifies whether to perform migrations in an interactive mode. Defaults to true, meaning the user will be prompted when performing a specific migration.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.