Closed raza91 closed 3 years ago
You are right, the problem is that the library uses shelljs under the hood, which returns the stdout and the stderr only after the command finishes. It is expected behaviour for now. What you want could be achieved by using the event listeners on the child process, so I will mark this issue as "enhancement"
Any idea when it can be released? @euberdeveloper
It is something that could be done in a day, but I have some exams and a short job now, so I think that I would do that in something like a week. I will write here when a new version gets released
@euberdeveloper if you can please release it a bit earlier like in 2-3 days that will be much appreciated my work is dependent (stuck) on that enhancement
Yes, I think that I could do it
Turned out to be easier than expected. You should update to the new published version and read the realtimeLog
option here: https://mongoback.euber.dev/interfaces/logoptions.html. (if you want, add a :star:)
@euberdeveloper Excellent , Thanks
mongoexport progress bar is printed at once on screen
After [SUCCESS] then every thing is printed at once that is not correct progressbar is necessary to see progress as mongoexport do by default
`mongoexport --host=localhost --port=27017 --db=test --collection=user -vvvvv --fields="name,emails" --type=csv --out=~/test.csv 2021-01-29T17:52:45.696+0500 will listen for SIGTERM, SIGINT, and SIGKILL 2021-01-29T17:52:45.702+0500 connected to: mongodb://localhost:27017/ 2021-01-29T17:52:45.705+0500 Getting estimated count for test.user 2021-01-29T17:52:46.738+0500 [........................] test.user 104000/10000005 (1.0%) 2021-01-29T17:52:47.738+0500 [........................] test.user 208000/10000005 (2.1%) 2021-01-29T17:52:48.728+0500 [........................] test.user 312000/10000005 (3.1%) 2021-01-29T17:52:49.728+0500 [........................] test.user 416000/10000005 (4.2%) 2021-01-29T17:52:50.728+0500 [#.......................] test.user 520000/10000005 (5.2%) 2021-01-29T17:52:51.718+0500 [#.......................] test.user 632000/10000005 (6.3%) 2021-01-29T17:52:52.728+0500 [#.......................] test.user 736000/10000005 (7.4%) 2021-01-29T17:52:53.738+0500 [##......................] test.user 840000/10000005 (8.4%) 2021-01-29T17:52:54.738+0500 [##......................] test.user 936000/10000005 (9.4%) 2021-01-29T17:52:55.718+0500 [##......................] test.user 1032000/10000005 (10.3%) 2021-01-29T17:52:56.715+0500 [##......................] test.user 1144000/10000005 (11.4%) ^C2021-01-29T17:52:57.028+0500 signal 'interrupt' received; forcefully terminating
`
@euberdeveloper