Opened 18 years ago
Closed 18 years ago
#2265 closed enhancement (worksforme)
Add batch mode to trac-admin
|Reported by:||Owned by:||daniel|
When following process specifications most new projects look alike when starting.
It would be useful to add the capability to the trac-admin script to process commands supplied from a file.
My current workaround is to build a script that calls trac-admin multiple times, but it would be much more elegant to have trac-admin read the commands from a file.
Change History (2)
comment:1 by , 18 years ago
|Component:||general → trac-admin|
comment:2 by , 18 years ago
|Status:||new → closed|
You don't even need to use echo, since you can directly pipe a file into the process:
$ trac-admin /path/to/env < trac-commands.txt
Note: See TracTickets for help on using tickets.
trac-admin reads from stdin, so you can pipe your batch to trac-admin, eg.: