1,432 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
0
answers
72
views
redirect STDERR in git-bash for Windows (11) not working any more
I have been using a bash script on my Windows environment for a long time to automate certain git commands. With a new Windows 11 installation I get a completely unexpected problem with the script: ...
1
vote
1
answer
62
views
Copy stderr of previous command without rerunning it
(I am using the kitty terminal emulator, though I would appreciate answers for other terminal emulators as well.)
I run a command, and get some error message, like this:
~ » somecommand
❌️ Some Error ...
1
vote
0
answers
45
views
How to capture stderr output (fprintf) from C++ in Android and view it in logcat? [duplicate]
I'm trying native C++ code in an Android app, and I want to log diagnostic messages using fprintf(stderr, "msg\n");. However, I can't find these logs anywhere — they do not appear in logcat, ...
1
vote
0
answers
75
views
Django manage command set stdout and stderr
Is there a way to set stdout and stderr from base_stealth_options in BaseCommand when running the django command? I can't find any documentation about how to use those options. For example, I would ...
1
vote
1
answer
326
views
Plink version 0.83 not using STDOUT or STDERR?
For SSH-connections I wrote a "wrapper" (to do automatic IP-address lookups etc.) and in the background it is using Plink.exe (the CLI version of PuTTY). This was working very well for a ...
1
vote
1
answer
92
views
add timestamp to stdout and stderr logs of program running in supervisord
I'm trying to add timestamp to stdout and stderr of process running by supervisord.
I've created bash script that wrap the program command line -
#!/bin/bash
# set piped processes to be killed when ...
1
vote
0
answers
75
views
How to capture STDERR output in Jupyter Notebook with R kernel
Jupyter Notebook with R kernel (IRkernel) cannot show output to STDERR. For example, below are two cells in an .ipynb file:
cat("O kay!", file = stdout())
O kay! ## ...
2
votes
1
answer
238
views
How can I redirect `prompt_toolkit` `prompt` output to standard error?
How can I redirect prompt_toolkit output to standard error?
I’m working with a script that uses from prompt_toolkit.shortcuts import prompt, and I'm trying to display a progress bar to standard error ...
-3
votes
1
answer
124
views
The writer should write to stderr
public static class Utils
{
/// <summary>
/// Creates a Writer object that writes either to a file or to a console stream.
/// </summary>
/// <param name="outFname&...
0
votes
1
answer
77
views
How is the logging module still outputting even when stdout and stderr are set to None?
This is a simple proof-of-concept script
import logging
import sys
logging.basicConfig(level=logging.DEBUG)
logging.info('This is a test for info')
logging.error('This is a test for error')
print('...
1
vote
1
answer
102
views
How to swap stdout and stderr using `/dev/stdout` and `/dev/stderr`?
Consider this Bash function:
func() {
( echo STDOUT; echo STDERR >&2 ) 1>1ドル 2>2ドル
}
And then this:
$ func /dev/stdout /dev/stdout | wc -l
2
$ func /dev/stdout /dev/stderr | wc -l
...
0
votes
0
answers
34
views
How to redirect both stdout and stderr to a file, while keeping stdout and stderr to a display? [duplicate]
Assume a shell script that has output to both stdout and stderr. While keeping their outputs to display without merging them (not 2>&1), I'd like a single file that contains both its stdout and ...
0
votes
1
answer
98
views
PBS Pro custom stdout stderr filenames
I would like to know how to append jobID to the custom stdout file names. I don't like the default option of jobname.o and jobname.e in PBS Pro. USing SLURM, I could just define stdout filenames and ...
0
votes
0
answers
110
views
Bash error trap does not catch stderr output after redirection to file
In my bash script I redirected stdout and stderr to a logs file to prevent it from being printed in the terminal.
I set my script to exit on error occurrence using set -e switch.
Now, whenever any ...
1
vote
2
answers
154
views
Call Java.exe with parameters with Powershell shows info as error
Description
As part of a an open-source project, I am writing a script that will allow to host Jenkins agent as a service.
Jenkins is running on Java, so I had to call Java.exe.
What I Tried
For this, ...