[SERVER-18643] Output redirection from mongo shell Created: 25/May/15 Updated: 06/Dec/22 Resolved: 29/Jun/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Ricardo Lorenzo | Assignee: | Backlog - Service Architecture |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | ml-retriage, platforms-re-triaged, sp-shell | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Assigned Teams: |
Service Arch
|
||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
I wish there is a way on the mongo shell for redirecting the output to STDERR or files. The current workaround is just adding some tags as boundaries and parsing the output from a bash script or another application.
And at the bash script side:
|
| Comments |
| Comment by Jessica Sigafoos [ 29/Jun/20 ] |
|
Once the new shell supports running scripts, we assume it will behave in the expected manner. If this is not the case, please file a new ticket in the MONGOSH project. |
| Comment by Chris Findlay [ 03/Jun/15 ] |
|
Implementing the other would make it easy to implement this if we simply define some system filehandles for STDOUT, STDERR and STDIN. As it turns out, SERVER-14880 will solve my particular use case entirely, but I do suggest the ability to have the system filehandles be accessed as an extension to it. |
| Comment by Kevin Pulo [ 29/May/15 ] |
|
This feels very similar to SERVER-14880, and possibly some of the tickets it also links to. |