107 questions
0
votes
1
answer
65
views
Flask debug info
after running Flask I saw this output on the console. How do I disable it and what is it? I have no idea how it appeared and I use it. Thx for any ideas
* Serving Flask app 'app'
* Debug mode: on
...
-2
votes
1
answer
141
views
Is it possible to read the standard output of a console app, before the console app exits? I mean without using Process.WaitForExit()? [duplicate]
I have C# app1 that starts the C# console app2 and reads the console standard output values of it. Normally I am reading the outputs with code below (app1)
public void read_values_from_app2
{ ...
1
vote
0
answers
16
views
Why does output order change when code run as script vs console [duplicate]
I have a question about the order of output from a Powershell script. The order changes if I run the code from a script compared to just running it line for line in the console. I'd like to ...
-2
votes
1
answer
311
views
Creating a hierarchical file structure in Python with file names and sizes
How to create file tree from list of (str, int)?
I already tried to find ways to solve this problem, but I managed to find code for working with files, not a list of strings.
Example of input:
[
('...
0
votes
1
answer
199
views
I want to use dotnet restore command in "Execute Windows batch command" in my jenkins job but i am getting error
This is what i have put in "executr windows batch command" -
"dotnet restore
"C:\Users\nraut.SIPL.jenkins\workspace\WebNetAgentSln\WCFServiceGX.sln"
dotnet build "C:\...
1
vote
1
answer
418
views
Capture Unicode command line output
I have a procedure to capture a hidden Command Prompt window and display the output in a TMemo. This is the same/similar code that is posted all over the internet and Stack Overflow:
var
Form1: ...
2
votes
0
answers
223
views
Delay in loading console output
My Jenkins job has around 25000 lines of console output
If I open the job and choose the option as 'Show in Plain Text', complete output is displayed within seconds.
But, if I choose the option ...
1
vote
2
answers
4k
views
Where I can find the Console.WriteLine output from the Blazor Server App?
I have the Blazor component library, I need to debug it. The library can be used in Blazor WASM and Blazor Server-Side Apps. For debug purposes I do some console output:
Console.WriteLine("Hello!&...
0
votes
1
answer
66
views
disable zarr.open() output in console
I have unwanted outputs in the console from zarr.open() method. It does not have 'verbose-like' parameter. How can I get rid of those input console ?
I'm currently trying to open .ims files (Imaris ...
0
votes
0
answers
277
views
How to capture console output from xarray.open_dataset
When accessing remote datasets with xarray.open_dataset, warnings or errors sometimes show up in my console.
Capturing messages written to sys.stderr or sys.stdout is certainly possible (or one can ...
1
vote
1
answer
188
views
.speak() method is giving unnecesary output [duplicate]
Recently, I found out about the spvoice interface. Therefore, I wanted to make a small program that makes Powershell say something I type into it. So, I made this:
$Voice = New-Object -ComObject Sapi....
1
vote
1
answer
787
views
Redirecting command prompt process output to WPF TextBox
I am attempting to redirect a process running a command prompt to output to a WPF textbox. I found some very helpful code in a previous question here that got me most of the way. The redirect works, ...
1
vote
0
answers
42
views
Why can't I redirect error output from cscript to a text file when I'm calling it from another VBScript? [duplicate]
Alright, so I'm pulling my hair out over this one. I have a VBScript that calls other VBScripts, and I need it to output the errors to text files, since the scripts should be running non-interactively....
1
vote
2
answers
2k
views
Using UTF-16 for I/O with Visual Studio instead of code pages
I have this working on Visual Studio 2019 using code pages:
#include <windows.h>
#include <iostream>
int main()
{
UINT oldcp = GetConsoleOutputCP();
SetConsoleOutputCP(932); ...
0
votes
2
answers
195
views
Need Help working with Nested For loop to display a block of text (Java)
I need to make a block of text that looks like this:
1 1 4
1 2 3
1 3 2
1 4 1
I have currently got this code:
for (int x = 1; x <= 4; x++) {
for (int y = 4; y >= 1; y--) {
System.out.println(&...
0
votes
1
answer
165
views
Why does powershell -c 'write-output "foo bar"' print its output on two lines?
When I invoke powershell with the -c command line parameter and a write-output "foo bar" command, the words are printed on separate lines:
PS> powershell -c 'write-output "foo bar&...
0
votes
2
answers
1k
views
Can i mirror the console output to a website?
Is there any way I can mirror the console output to localhost in java and maybe even add some nice CSS to it. It would be cool if the console could also be reached by other devices in the same network....
1
vote
0
answers
98
views
Jenkins Console Output is taking too long to print Failures after the tests are done running
I have around 650 tests that runs in Jenkins everyday for regression. The tests are running fine but when the tests are done running Jenkins is taking too long(more than 2 hours for 50 tests) to print ...
1
vote
0
answers
399
views
Live console output with colors on jenkins with pytest
How to see to console output in live on jenkins with pytest?
Important note:
I need also to see the colors with AnsiColor and I see them with this command:
pytest [path_to_test] --capture tee-sys
But ...
-1
votes
1
answer
664
views
Shell script which prints error message when package not found [duplicate]
I'm writing a shell script, and I need to check for some dependencies being installed before executing anything. I found I can use which <package> to see if it is installed or not. The problem ...
1
vote
1
answer
282
views
Debugger has correct output but normal execution does not
I'm having this strange issue where my code does exactly what I want it to when I run it through my debugger, but it doesn't work when I run it normally. What's stranger is that I am not getting a ...
-1
votes
2
answers
2k
views
C++ Colored text in console not showing when launching application directly
I have implemented my own Logging class for my applications I write in C++. I implemented the Logging class using this way (https://stackoverflow.com/a/54062826/12873837) of coloring the text. It does ...
-1
votes
1
answer
2k
views
Check if user pressed Enter
the following scenario is given:
Welcome screen appears. If user has read the welcome text he has 2 choices:
a) pressing ENTER to continue an getting the next text
b) pressing the E-Key in oder to ...
1
vote
0
answers
792
views
How to extract error in console output of Jenkins?
I'm trying to find specific errors from Jenkins console output and print them by echo statement. For example, I made a missing in my closing statement " } "As shown in my pipeline script, ...
0
votes
1
answer
239
views
Suppressing stubborn console output on system calls in Ruby
I'm calling imagemagik's convert program from within ruby to convert image types. I'm redirecting both stdout and stderr to /dev/null but I'm still getting console text. It only occurs when converting ...
1
vote
1
answer
720
views
redirect GridSearchCV (or any other Sklearn object) output to file
I want to be able to save GridSearchCV output to file while running.
GridSearchCV(XGBClassifier(), tuned_parameters, cv=cv, n_jobs=-1, verbose=10)
This is an example for an output:
Fitting 1 ...
0
votes
0
answers
66
views
Is it possible to block print calls in java? [duplicate]
if a method is called but the method calls System.out.print(); and prints on the console, is there any way to disable printing on console for that specific method calls and enable again
0
votes
0
answers
197
views
Eclipse console output vs command line
I develop a small java app, I've exported as a .jar as java -jar my.jar
I developed the app in eclipse and the Eclipse output console renders correctly using Windows PowerShell as well but if I use ...
-2
votes
1
answer
90
views
stuck to printing pyramid code although my code is correct but my jupyter notebook doesn't print me the exact answer
Screenshot of code and output
Code
num = int(input("Enter the number of rows:"))
for i in range(0,num):
for j in range(0,num-i-1):
print(end="")
for j in range(0,i+1):
...
0
votes
1
answer
361
views
How can I get a Unicode character from a number?
I'm new to C++, so sorry if this is obvious.
How can I get a character from a number?
I have the following code:
for (int i = 0; i < 500; i++) {
cout << i;
}
It's supposed to get the ...
4
votes
1
answer
2k
views
subprocess.run not suppressing all console output
subprocess.run with stdout=DEVNULL and stderr=STDOUT does not suppress all output from the subinacl.exe utility.
>>> # Do not suppress: OK
>>> subprocess.run('subinacl.exe /service "...
0
votes
0
answers
137
views
How do you remove the console output inputted by the user in eclipse?
I want the program to wipe out the previous console output. For example i have a data entry program that when the program repeats, the whole output that were inputted must be wiped away in the console ...
1
vote
0
answers
209
views
C# append command line output to a Text Box
I'm writing a program (a C# winforms application) to print the console output of a process to a Textbox as follows.
private void button21_Click(object sender, EventArgs e)
{
Process p = ...
9
votes
2
answers
2k
views
reticulate doesn't print to console in real time
Using Python's print() (or to the best of my knowledge, any other console output generating) function in loop structures and running the code via reticulate in R, the output is only printed after the ...
1
vote
1
answer
1k
views
Within contextlib.redirect_stdout() the print()-function causes an AttributeError: 'str' object has no attribute 'write'
I tried to redirect the entire console output of a specific part of my python code to a textfile following the advice of this post.
According to that post, it should work with contextlib....
0
votes
3
answers
2k
views
To print console output to text file Java?
I'm trying to send the output of my program to a text file called results.txt . Here's my attempt
public void writeFile(){
try{
PrintStream r = new PrintStream(new File("...
0
votes
2
answers
2k
views
Loop trough docker output until I find a String in bash
I am quite new to bash (barely any experience at all) and I need some help with a bash script.
I am using docker-compose to create multiple containers - for this example let's say 2 containers. The ...
1
vote
2
answers
127
views
How to put and execute code into Keyword with JSR223?
I try to implement this : https://www.testautomationguru.com/jmeter-how-to-create-a-data-keyword-driven-framework-for-performance-testing/
I have a .csv file with the test case name in the first ...
2
votes
1
answer
670
views
How can i use printf("\b") to make my console output look like typewriter?
I am using a loop to delete characters from a string using printf(\b) 1 by 1 and sleep 0.1 seconds in between. But when I run the code it happens simultaneously.
I literally tried typing each printf ...
-2
votes
1
answer
85
views
how to fix no output to console window in eclipse [closed]
When running program I have no output to my console window,
Tried selecting different console windows, closing and reopening the window, closing other open code
package Codecademy;
public class ...
1
vote
2
answers
2k
views
Properly indent Java/Kotlin console output
I am outputting a lot of information to the console that is gathered across multiple nested calls. I would like to be able to print the information on the screen in a readable manner but the I can't ...
2
votes
2
answers
455
views
PowerShell v5.1 Select-Object Console Output Is Different from v3.0
I just upgraded PowerShell from v3.0 to v5.1 and noticed that Select-Object and Format-Table's console outputs behave very differently. If a property's value is too long, all later properties are ...
0
votes
1
answer
1k
views
Export VirtualBox VM with PowerShell and show progress
I want to export all my VirtualBox VMs for backup purpose using an automated script. The following command should do the export in my PS script:
cmd.exe -c "vboxmanage export Antergos -o D:\Temp\...
0
votes
1
answer
799
views
Dynamic update text in same place on terminal python 2.7
My program is written in Python 2.7 and I want to do a dynamic update. The output is in table-view and has hundreds of characters. A really good answer I found here, however, more than 100 characters ...
8
votes
1
answer
2k
views
How to read console output of a process without redirecting standard output?
I'm writing a GUI for a third-party console application and I want it to capture the output of a console window and add it to a text box in the GUI. Problem is, when I try to redirect the output ...
0
votes
1
answer
801
views
Tkinter - returning print of imported modules when button clicked to perform function
I have written some code primarily to be used with the console, but was asked to create a simple GUI for it for ease of use. In it, I am setting up the main frame with widgets, and using the widget ...
1
vote
0
answers
226
views
Redirect console output to a custom LogBack appender [duplicate]
Today I have started using LogBack in combination with SLF4J for my project. I have been trying to redirect all console output (From my own project and others) to a custom appender.
The final goal is ...
1
vote
0
answers
4k
views
How we can get console output in jenkins job 'createhosts' log output instead of showing build number in jenkins build pipeline project?
I wrote a pipeline script and in console output i need createhosts log output also instead of showing build number.
Script:
pipeline {
agent none
stages {
stage('create hosts') {
...
1
vote
0
answers
51
views
JavaScript console input/output output trouble
Code output should be:
515
30
However, when I add variables a, b, c my output is 51530. I've added a + b just to test it, and the output was 515. I just can't figure out how to return the c so that ...
3
votes
3
answers
4k
views
How to get the sql print message using pymssql
I'm running some queries, that print runtime stats from their execution.
It's done through
print('message')
used within the sql script.
I would want to see these messages while calling the ...