Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
1 vote
0 answers
53 views

I want to make a minimal interactive console utility using Effect. Started from an empty Effect app: npx create-effect-app@latest ... (interactive part) cd effect-app npm install Then I copy-pasted ...
1 vote
1 answer
69 views

I'm building a custom CLI daemon in Go for Ubuntu. When I run the CLI locally (without SSH), everything works correctly — for example: admin@admin> whoami responds as expected. However, after ...
0 votes
0 answers
29 views

Consider the following expect script: #!/usr/bin/env expect -f send "Hello world" expect eof send "Goodbye world" I would like the output to be Hello world followed by Goodbye ...
merlin2011's user avatar
  • 76.5k
3 votes
1 answer
260 views

Consider the following code: #include <iostream> #include <string> #include <termios.h> #include <unistd.h> void settings() { struct termios settings; settings.c_lflag ...
pattydaone's user avatar
3 votes
0 answers
153 views

I’m trying to forward input from os.Stdin to a network stream in Go like this: go func() { for { if _, err := io.Copy(stream, os.Stdin); err != nil { log.Error(err) ...
Onyz's user avatar
  • 33
0 votes
5 answers
167 views

Say I have an image viewer program. I would want to view images in these two ways: imageviewer [list of files] // scenario A [list of files] | imageviewer // scenario B and using one method shall not ...
rphii's user avatar
  • 239
1 vote
2 answers
160 views

I'm trying to read from stdin and get None (or some other defined value) should the user not input any text after a predefined timeout. However, when I tried the below code, the script just hung ...
0 votes
0 answers
42 views

I'm attempting to build a script that I can use to connect to my SonicWall NetExtender VPN via Python. Currently my connect method successfully triggers the OTP password to be sent to my email. def ...
a.b89's user avatar
  • 11
0 votes
3 answers
118 views

#include <stdio.h> #include <stdlib.h> #define BUF_SIZE 1024 int main() { char *buf = (char*)malloc(BUF_SIZE*sizeof(char)); fgets(buf, BUF_SIZE, stdin); int a = 0; sscanf(buf, ...
2 votes
0 answers
78 views

I have a program that polls on a set of file descriptors, including stdin, to read and write from them. I also have a set of scripts that do things like run the program in the background for testing. ...
irontigran's user avatar
3 votes
0 answers
142 views

I am trying to parallelize a program that reads a huge file from the stdin using OpenMPI. The problem is that the input is not correctly read. More specifically, when the OpenMPI runtime is ...
1 vote
2 answers
117 views

I've never written or read any ruby code in my life until today - this said - I've been tasked with solving an input problem. In the short amount of reading I've done, I've found that @vars are ...
3 votes
1 answer
99 views

This script in question runs as expected from powershell: # scripts.py x = input("type your input: ") print(f"your input is: {x}") But once you wrap it into a module: class CSV{ ...
-1 votes
1 answer
90 views

There are two main commands im using, ripgrep and gawk(awk version for windows). Im on the cmd, so i cant really use $( ) Basically i use ripgrep to find a patter in a list of markdown files: rg --...
3 votes
2 answers
241 views

Problem I'm working with asynchronous code in Rust and trying to handle user input from stdin in a cancel-safe manner. My goal is to be able to detect when a user presses a key (or hits enter) to ...

15 30 50 per page
1
2 3 4 5
...
263

AltStyle によって変換されたページ (->オリジナル) /