[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: automate input
From: |
Chris F.A. Johnson |
Subject: |
Re: automate input |
Date: |
Thu, 9 Aug 2007 04:40:34 -0400 |
User-agent: |
slrn/0.9.8.1 (Linux) |
On 2007-08-08, ruby0954 wrote:
>
> trac-admin is an interactive script. most its default answers are fine. I
> would like to have my script to hit the enter key for me. $'\r' is not
> working as the enter key. thanks.
>
> my script
> ...
> trac-admin $tracRoot/$projectName initenv << CONFIRM
> $'\r'
> $'\r'
> $svnRoot/$projectName
> $'\r'
> CONFIRM
> ...
yes "" | trac-admin $tracRoot/$projectName initenv
--
Chris F.A. Johnson <http://cfaj.freeshell.org>
===================================================================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
.
- automate input, ruby0954, 2007/08/09
- Re: automate input,
Chris F.A. Johnson <=