Modify ↓
Opened 19 years ago
Closed 19 years ago
#2265 closed enhancement (worksforme)
Add batch mode to trac-admin
Reported by: | Owned by: | daniel | |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | admin/console | Version: | devel |
Severity: | normal | Keywords: | admin |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
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.
Attachments (0)
Change History (2)
comment:1 by , 19 years ago
Component: | general → trac-admin |
---|---|
Owner: | changed from | to
comment:2 by , 19 years ago
Resolution: | → worksforme |
---|---|
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.: