Skip to main content

All Questions

Tagged with
-1 votes
1 answer
73 views

C# code, SendKeys.Send gets "Access denied..." error occasionally [duplicate]

I have a C# code, in which I need to run a very old vendor binary to ASCII conversion program, here is relevant part of my code: C# code with SendKeys.Send "Access denied..." These codes are ...
gdu000's user avatar
  • 1
1 vote
1 answer
96 views

Communicating Java and Python processes freeze after a while when using readline() but not input()

I have a Java program that needs to process a long series of input strings. To do this it goes through each string, passes it to a Process (a Python script), gets the result from the Process's ...
Zyxl's user avatar
  • 115
0 votes
0 answers
48 views

C# start python process which listens to StandardInput

I'm using Process.start() in python to start a python script. In general this works, but I have a problem concerning the performance when starting the python script. The process is as follows: C# ...
Lennart's user avatar
  • 111
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
1 vote
1 answer
134 views

How can I make a child process's stdin inherited and piped?

I want to create a child process that will take normal input from the parent stdin. but at the same time i want to send signals through its stdin (ctrl+c - 0x03 like xterm does). Using the standard ...
JumpyLionnn's user avatar
2 votes
1 answer
225 views

Process cannot read from the standard input in Swift

I'm trying to run a command with eleveated privileges by spawning sudo child process using Process: let process = Process() process.executableURL = URL(fileURLWithPath: "/usr/bin/sudo") ...
Nikolay Edigaryev's user avatar
0 votes
1 answer
272 views

How to write a char to the stdin in C?

I'm making a minishell and I have to create in C a command as "<<" in bash. So I have to enter some input in the terminal and redirect it to the standard input but I'm having problems ...
Dani Cruz's user avatar
-1 votes
1 answer
102 views

Passing STDIN to Binary from Script Causing Repeated Enters

I have a program that implements a command prompt menu: #include <stdio.h> #include <string.h> int main(int argc, char *argv[]) { char username[32] = {0}; printf("Username: "...
Edward Chamberlain's user avatar
2 votes
1 answer
1k views

C# Process.StandardInput.Write deadlocks/hangs when not using StreamWriter.Close

I have a C# program that wants to interact with an external process written in C++. I believe this C++ process is using correct standard input. I just can't seem to get my C# code to not hang when ...
GhostRavenstorm's user avatar
0 votes
1 answer
69 views

How does a program like less handle both piped stdin and keyboard input?

If I run, for example, ifconfig | less, the less program manages to at the same time: Capture output of ifconfig through the standard input where the output of ifconfig is piped React to user's ...
Max Yankov's user avatar
  • 13.1k
0 votes
1 answer
165 views

Reading the input stream of another process in C

I want to view the input stream of a C program using a secondary program to access it. I tried passing the STDIN from one process to the other using a FIFO (I'm on Linux) and viewing the size of the ...
Gabriel's user avatar
  • 75
0 votes
0 answers
87 views

Possible Stray New Line Character Messing Up Input Redirection to Process

I'm writing a C# wrapper to execute PAExec with a set list of parameters passed into the method, but hit a snag with redirecting password into the StandardInput stream of the Process object. Here's ...
DennisKRQ's user avatar
  • 175
1 vote
1 answer
191 views

stdout hangs on blinking cursor

I have a process struct, which holds a process handle: pub struct Process { process: Child, init: bool } I have a seperate function where I can 'talk' to the engine. fn talk_to_engine(&...
MitchellWeg's user avatar
0 votes
1 answer
1k views

How to pass in process.stdin as Javascript with Node?

I'm writing a poker game in Javascript that's supposed to take stdin as follows: The first line of input will contain a single integer representing the number of players. This number will always be ...
Giao Tran's user avatar
  • 155
1 vote
1 answer
1k views

Read and write from/to piped stdin,stdout

I need to pass infromations between 2 different processes and i tried to use pipes in order to do that. Since i never used them i tried to start from basics. However it seems i am unable to read the ...
Massimo Isonni's user avatar

15 30 50 per page
1
2 3 4 5
7