<div dir="ltr"><div>1) I want output in real time on a Windows system(no tail), and piping output to a file then reading it is a very poor solution. 'just check the contents in note pad'....<br></div>2) This is a general-purpose solution and not something I'm making just for myself, hacky fixes are not an option.<br></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Dec 21, 2018 at 7:26 PM frodak17 <<a href="mailto:frodak17@gmail.com">frodak17@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br></div><div><br><div class="gmail_quote"><div dir="ltr">On Fri, Dec 21, 2018 at 8:30 PM Person Withhats <<a href="mailto:personwithhats2@gmail.com" target="_blank">personwithhats2@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div><div>Hey there!<br><br></div>I'm running a script that downloads some files and untars them. This takes a while but it outputs progress. Unfortunately I can't get the output to show up in real-time with CMake GUI or CLI.<br><br></div>Current workaround to see output live, loses it in log though......<br> execute_process(COMMAND "cmd" /c "start /wait download_sdks.exe"<br> WORKING_DIRECTORY "${SCRIPT_DIR}"<br> OUTPUT_VARIABLE OUT<br> RESULT_VARIABLE RES)<br><br></div><div>Exit code is always 0 no matter what I do or how I get this set up. I want to see the output as it's running (preferably in same cmake window) and for the GUI stop-button to properly stop the script instead of hanging until script ends by itself.<br><br></div><div>Right now I can get the output at the end but after 1.5 hours of untarring/etc. I'd be worried if it wasn't just frozen......<br><br></div><div>This is for windows 10 ofc and the .exe file is PyInstalled. Works fine double-clicking (launches terminal/etc.) but Cmake....ugh......<br><br></div><div>tl;dr script runs and works fine as usual but I can't see output <b><i>while</i></b> it's running instead of after.<br></div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"></blockquote><div dir="auto"><br></div><div dir="auto">How about use OUTPUT_FILE instead. Then while CMake is running you can do a tail -f on the output file in a different window or just check the contents in notepad. I don’t know what happens if you don’t redirect standard output from CMake maybe it shows in terminal. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
</blockquote></div></div>
</blockquote></div>