1

When I run the following command:

yiic webapp main /home/david123/domains/david123.servehttp.com/public_html/main

It waits for my answer:

Create a Web application under '/home/david123/domains/david123.servehttp.com/public_html/main'? [Yes|No] 

Rather than entering Yes/No each time I run this command, I would like to pre-supply the answer to the command. What should I append to my original command?

yiic webapp main /home/david123/domains/david123.servehttp.com/public_html/main

1 Answer 1

6

You should prepend an invocation of yes.

yes Yes | yiic webapp main /home/david123/domains/david123.servehttp.com/public_html/main
4
  • Thanks a lot for your answer. It has solved my problem. The program only asks me one question so I only need a single yes, right?
    – bobo
    Dec 21, 2011 at 0:44
  • 1
    The yes command will keep supplying yesses whether the program needs them or not. Dec 21, 2011 at 0:46
  • Sounds like some former coworkers.
    – ceejayoz
    Dec 21, 2011 at 1:24
  • @David Schwartz I didn't know there exists such an interesting command. Thanks a lot for your information.
    – bobo
    Dec 21, 2011 at 8:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .