Skip to main content

All Questions

Tagged with
0 votes
1 answer
51 views

Bash - Log timestamp of the moment data was received on stdin, coming from a pipe

I have an application that outputs to stdout from time to time - random intervals, random durations of outputting before going silent again. Its output (binary data) is captured into a file. I want to ...
programings's user avatar
1 vote
1 answer
62 views

Piping input into running Python script

Maybe this is the wrong approach, so feel free to redirect. I am trying to asynchronously pipe input into a python script. The idea is that I have a background Python script do some long initial setup ...
BrettOC's user avatar
  • 69
0 votes
1 answer
49 views

Redirecting stdout with execvp

This code basically a small part of the binary tree with nodes being processes, and it should traverse the tree inorder way passing num1 to left subtree etc. This one just creates a left child and ...
Özgür Çavuşoğlu's user avatar
0 votes
1 answer
49 views

Executing sed via execvp makes other pipes blocked

I am playing around with fork/pipe/dup/execvp concepts and came out with a little problem: I made a test main to execute sort and manually send some numbers via pipe bound to STDIN and it works as ...
StormByte's user avatar
  • 1,299
0 votes
1 answer
74 views

How to write a BASH command in C which use stdin and stdout

I want to write a programme where I compile a C programme, and save it where BASH recognises programmes are (/usr/bin or somewhere). For usage I want to run in the terminal $ c_programme <...
1toneboy's user avatar
  • 119
0 votes
0 answers
37 views

How to launch a program and have a pipe to both stdin and stdout in C on linux [duplicate]

I'm trying to write a C program to configure lemonbar, a status-bar for linux, and i'd like to have the bar be interactive. The problem is that to write to the bar you have to use the program stdin ...
Eto on a mill's user avatar
0 votes
1 answer
148 views

How to get Pipe and Here String in Python?

When calling a Python script via echo foobar | python myscript.py <<< test123 How can I get both strings (the "foobar" and "test123") in the Python script? When trying ...
gott18's user avatar
  • 3
1 vote
0 answers
334 views

Pipe Input Error when Processing MOV Files

I'm working on a project in Go where I'm trying to process video files using ffmpeg through pipes. However, I'm encountering issues when I try to use a pipe for the input stream. Here's a snippet of ...
BJKang's user avatar
  • 51
4 votes
1 answer
264 views

Why does wc output different padding spaces depending on how stdin is connected?

See the following two commands with output: $ wc < myfile.txt 4 4 34 $ cat myfile.txt | wc 4 4 34 My understanding is that these two both connect the stdin of the wc process ...
cdjc's user avatar
  • 1,099
0 votes
1 answer
55 views

Why isn't my output maintaining integrity after a pipe to a program that takes input from stdin?

My output gets corrupted when I try to pipe some output to another command in the shell. This doesn't happen when I execute the executable alone, or redirect its output to a program that doesn't care. ...
Patrick O'Brien's user avatar
0 votes
2 answers
105 views

Feed private key to pageant via STDIN

Is there a way in Windows to trick or simulate the file, made from other command output? What I am looking for is the following bash equivalent, but for Windows and pageant: sops --decrypt "${f}&...
Vetal's user avatar
  • 275
0 votes
0 answers
168 views

Bash read stdin line by line, and preserve null bytes

I'm currently using read to read from stdin line by line, but the input I'm reading contains null bytes, and storing the input in a variable removes them. Is there any way to get the data either as ...
LuisAFK's user avatar
  • 897
2 votes
1 answer
223 views

How not to mess terminal up after sys.stdin.read() and subprocess invoking vim?

I want to create interactive mode code like git rebase -i HEAD~6 but for PIPE editing, stdin redirection. another example is vipe of moreutils. To do that, I learn this code below. # Source: https://...
Constantin Hong's user avatar
1 vote
1 answer
92 views

monitor pipe in bash

I have multiple pipe bash command, but let's simplify it to this command: echo "12 JAN 2023" | date -d - the output is: So 10. června 2023, 00:00:00 CEST I want to monitor, what is going ...
xerostomus's user avatar
-2 votes
1 answer
129 views

stdin is not plugged to piped data for /subsystem:windows linked applications

I try to make a GUI application that can tolerate piped data as input, if present. The use case is either it gets started from file explorer, and it may have a command line argument or not. Or, it is ...
v.oddou's user avatar
  • 6,695

15 30 50 per page
1
2 3 4 5
24