About 21,100 results
Open links in new tab
  1. c - What exactly is stdin? - Stack Overflow

    Jun 8, 2017 · I am a bit confused regarding the implementation of stdin. What exactly is it? Is it a pointer? I tried to print the size of stdin using sizeof on a 64 bit machine and got 8. I even de …

  2. Confused about stdin, stdout and stderr? - Stack Overflow

    Aug 2, 2010 · These values are always used for stdin, stdout, and stderr: 0: stdin 1: stdout 2: stderr Ironically I found this question on stack overflow and the article above because I was …

  3. How do I read from stdin? - Stack Overflow

    How do I read from standard input (stdin)?There's a few ways to do it. sys.stdin is a file-like object on which you can call functions read or readlines if you want to read everything or you want to …

  4. stdin - How to read from a file or standard input in Bash - Stack …

    Aug 8, 2011 · Reading from stdin into a variable or from a file into a variable. Most examples in the existing answers use loops that immediately echo each of line as it is read from stdin.

  5. What is stdin in C language? - Stack Overflow

    Jun 9, 2016 · stdin is an "input stream", which is an abstract term for something that takes input from the user or from a file. It is an abstraction layer sitting on top of the actual file handling …

  6. stdin - How do I read a string entered by the user in C ... - Stack ...

    I want to read the name entered by my user using C programmes. For this I wrote: char name [20]; printf ("Enter name: "); gets (name); But using gets is not good, so what is a better way?

  7. What is the difference between stdin and STDIN_FILENO?

    Feb 27, 2013 · 26 stdin is a default FILE pointer used to get input from none other than standard in. STDIN_FILENO is the default standard input file descriptor number which is 0. It is …

  8. How do I write to a Python subprocess' stdin? - Stack Overflow

    I'm trying to write a Python script that starts a subprocess, and writes to the subprocess stdin. I'd also like to be able to determine an action to be taken if the subprocess crashes. The process...

  9. linux - gzip: stdin: not in gzip format tar: Child returned status 1 ...

    Sep 22, 2016 · I have a Bash script that creates a .tar.gz file, encrypts, and then sends it to a drive. However, I cannot open the .tar.gz file afterwards. Here is my process... Bash script that …

  10. Where are stdin, stdout files located in Windows?

    Aug 25, 2022 · On a Linux kernel, the stdin, stdout and stderr streams have corresponding entries in /proc. That /proc filesystem is an informational structure which provides visibility into the …