Find the answer to your Linux question:
Results 1 to 3 of 3
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 ...
  1. #1
    Just Joined!
    Join Date
    May 2008
    Posts
    16

    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????

    why an infinite loop??

    Thanks.

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    955
    Most distros run their graphical desktop on /dev/tty7. So if you open a terminal on the desktop and then cat from /dev/tty7, I'm not surprised you get an infinite loop.

    btw, when I tried to do this just now, I wasn't allowed to; only root has read access to this terminal. And when I tried doing it with gksu, I got a gtk error.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

  3. #3
    Just Joined!
    Join Date
    May 2008
    Posts
    16
    my confusion is not the infinite loop but its existence even after I close the terminal and open another one?

Posting Permissions

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