[SERVER-3774] Mongo shell echoing to stdout Created: 07/Sep/11 Updated: 11/Jul/16 Resolved: 07/Sep/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | 1.8.3 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Phil Jackson | Assignee: | Antoine Girbal |
| Resolution: | Done | Votes: | 0 |
| Labels: | scripting | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
All/Any |
||
| Participants: |
| Description |
|
When running a script through the mongo shell it echos to stdout the script you're running. It shouldn't do this so that results can be captured unpolluted. |
| Comments |
| Comment by Phil Jackson [ 07/Sep/11 ] | ||||
|
Super, thanks for your time, Eliot. | ||||
| Comment by Eliot Horowitz (Inactive) [ 07/Sep/11 ] | ||||
|
Ah - this is already fixed for 2.0 | ||||
| Comment by Phil Jackson [ 07/Sep/11 ] | ||||
|
Hey Eliot. Simple example might be this:
Stdout is then:
This makes scripting a pain. Ideally I think the output should just be "Hi there!" after the mongo shell has detected that there's a stream on STDIN. | ||||
| Comment by Eliot Horowitz (Inactive) [ 07/Sep/11 ] | ||||
|
Can you send an examples? |