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) . _______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash