I have a script vbs wich redirect some data to the stdin of myApp (written in C in Windows). If myApp was already launched before myApp finds the PID of the first myApp session and redirects the input received via stdin to the stdin of the first session of myApp which handles the stdin. So when myApp receives a stdin and no other instances of myApp are running it handles the stdin and does stuff with it. So the question is : how to redirect stdin from an app to another knowing the PID of this secnd spp? language = C platform = MSwindows
For example, let s say I want to find a particular word or number in a file. The contents are in sorted order (obviously). Since I want to run a binary search on the file, it seems like a real waste ...