Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    virtual terminal


    hi,
    tried running the command cat < /dev/tty7
    which caused the terminal to execute an inifinite loop. On closing the window and opeing the new one the infinite loop didn't terminate. it did only when i pressed ctrl+d.

    Can anyone provide some logic behind this behaviour????

    Thanks.

  2. #2
    Well I am not sure whether it is infinite loop maybe cat is just waiting to the end of file.
    In UNIX an end-of-file indication can be sent from an interactive shell (console)
    by typing Ctrl+D (conventional standard).

    regards,
    ndevel.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •