Is 7zip stdout broken? Is there a way to capture the progress in nodejs? [Windows]
I am trying to get the stdout of 7zip when it processes files and get the percentage in nodeJs, but it doesn't behave as expected. 7zip doesn't output anything to stdout until the very end of the execution. Which is not very helpful.. especially when I have large files being compressed and no feedback is shown for a very long time. The code I am using (simplified): // 7zip test, place the 7z.exe in the same dir, if it's not on %PATH% var cp = require('child_process'); var inputFile = process.argv[2]; if(inputFile==null) return; var regProgress = /(\d{1,3})%\s*$/; //get the last percentage of t
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.