4,820 questions
0
votes
0
answers
56
views
Use same shared memory unit from Lua and PHP [closed]
The closest I get in researching is stdin, stdout. But I don't see how I can get it across two processes. I guess if I am running commands sequencially in the same terminal session, it could be done, ...
-1
votes
0
answers
94
views
I meet a bug about std::views::adjacent_transform,so i want figure it out [closed]
int main() {
vector<int> nums{-15,19};
auto d = nums
|std::views::chunk_by(std::ranges::less{})
|std::views::transform(std::ranges::...
0
votes
0
answers
32
views
Can I have more streams than just stdout, stdin and stderr?
I have a process which will run a subprocess. Both will talk to a device through a serial port. The subprocess will be executing the custom code of a programmer using my library. Sometimes the ...
0
votes
1
answer
21
views
AutoIt StdoutRead does not capture python logging module to stdout
I am trying to get the full stdout output of my python script execution available in my AutoIt calling script, I just noticed that the standard logging call is not captured by StdoutRead function in ...
1
vote
3
answers
126
views
How can I print Unicode characters in Java?
I have a class named "Card" that stores a character and an integer. I am passing a unicode character of a card (the Unicode vals are taken from this Wikipedia page: https://en.wikipedia.org/...
1
vote
1
answer
55
views
How to capture the output string of a UTF-8 program using PowerShell?
The program inv.exe returns some console data based on parameters. It seems like a JSON/dictionary, but it's in text format (printed output). It works when I simply call it without trying to capture ...
0
votes
0
answers
36
views
WScript.Shell.Exec - Check if subprocess.stdout has data before synchronously reading
Context
I am using the following code to read stdout of a process launched with Wscript.Shell.Exec
Sub Main()
Dim lspProcess As IWshExec = CreateObject("Wscript.Shell").Exec("deno ...
1
vote
1
answer
36
views
How to run doc-tests without printing output
I want to run doc-tests and get the number of failures, but not print any output. For example, I tried this:
with open(os.devnull, 'w') as sys.stdout:
tests_failed, tests_run = doctest....
-3
votes
1
answer
74
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&...
2
votes
1
answer
75
views
Intercept C++ module "stdout" from Node.js
I'm currently using the Noble Node.js module for Bluetooth (BLE) connections. The Noble module will occasionally print errors directly to the console via C++'s printf function. Noble has no Node.js ...
0
votes
1
answer
41
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('...
2
votes
2
answers
52
views
Redirect linux process stdout to multiple incoming tcp connections
I have a worker process than produces its output onto the stdout pipe.
I would now want to have a service that echoes the stdout of this process to multiple incoming tcp peer connections.
In other ...
1
vote
0
answers
44
views
How to read stdout from subprocess safely in Python
Two choice quotes from the documentation:
On Popen.stdout:
Warning
Use communicate() rather than .stdin.write, .stdout.read or .stderr.read to avoid deadlocks due to any of the other OS pipe buffers ...
0
votes
0
answers
28
views
pam_script doesn't send stdout to the user during execution only when script completes
pam_script doesn't send output to the user when executing a script, only when the script completes. The example below simulates instructions to users and some api calls to complete the process. There ...
0
votes
0
answers
23
views
G1 GC logs to file, but some logs still go to stdout
I use the G1 GC settings:
-XX+UseG1GC -XX:+DisableExplicitGC -verbosegc -Xlog:gc*=debug,heap*=debug,safepoint=debug:file=gc.log:tags,time,uptime,level:filecount=0
I get output in my gc.log, but I ...