use expect to answer “yes” to all questions, handy if you script your deploys remotely
[code:1:f2be074f4e]!/usr/bin/expect -f
set timeout -1
spawn php artisan migrate:refresh –seed
match_max 1000000
expect “*you really*” { send “yesr” }
expect “*you really*” { send “yesr” }
expect “*you really*” { send “yesr” }
expect “*you really*” { send “yesr” }
expect eof
[/code:1:f2be074f4e]
call
[code:1:f2be074f4e]expect yourscript.sh[/code:1:f2be074f4e]
Leave a Reply