20

On command line, I typed a command and hit enter. It doesn't output anything . How do I tell if it's running and not yet output, or it's asking for user input?

Sergiy Kolodyazhnyy
  • 105,154
  • 20
  • 279
  • 497
Gqqnbig
  • 689
  • If it is waiting then you will not get PS1 prompt. – Prvt_Yadav Feb 14 '19 at 05:24
  • Please tell us which program it is (that is silent), and we can give you more precise advice about what to expect and how to check it; 2. Would you like to get an alert, when the program finally asks for input or has finished (so that something is written to the terminal window?
  • – sudodus Feb 14 '19 at 06:53
  • if there is an input expected I would assume you get a prompt with a message in front of it asking for input. – Rinzwind Feb 14 '19 at 07:54
  • 6
    @Rinzwind - That is a poor assumption. First counterexample to mind is the cat command. Just type cat by itself and it will wait for input from stdin, but gives no prompt. Many other commands behave similarly because they expect input from either stdin or a file, but don't differentiate between different input sources (interactive terminal, pipe, file...). – Dave Sherohman Feb 14 '19 at 11:01