Questions tagged [stdin]
Standard input (stdin, file descriptor 0) is the input stream to a program.
stdin
3,919
questions
2
votes
3
answers
2k
views
replace the stdin for a file
I got a program with a fscanf like this:
fscanf(stdin, "%d %d,....
I got many fscanf and files that I'd like to test, the files are like this
10485770 15 51200000
-2 10
10 10485760 10485760
10 ...
68
votes
11
answers
77k
views
Eclipse reading stdin (System.in) from a file
Is it possible for Eclipse to read stdin from a file?
348
votes
12
answers
445k
views
How do I pass a string into subprocess.Popen (using the stdin argument)?
If I do the following:
import subprocess
from cStringIO import StringIO
subprocess.Popen(['grep','f'],stdout=subprocess.PIPE,stdin=StringIO('one\ntwo\nthree\nfour\nfive\nsix\n')).communicate()[0]
I ...
14
votes
2
answers
14k
views
How can I test STDIN without blocking in Perl?
I'm writing my first Perl app -- an AOL Instant Messenger bot that talks to an Arduino microcontroller, which in turn controls a servo that will push the power button on our sysadmin's server, which ...