0

why do we need whiletrue as it leads to infinite looping

1st Nov 2016, 4:33 PM
shilpa
shilpa - avatar
3 Respostas
+ 4
Sometimes you want that. $ cat /dev/yes y y y ............ When piped, it answers 'yes' to all questions until KeyboardInterrupt. $ cat /dev/zero can use to zero a disk ...or just have an always-on monitoring loop to update a display, etc.
1st Nov 2016, 4:41 PM
Kirk Schafer
Kirk Schafer - avatar
0
ohh yaa.. thank u Kirk
1st Nov 2016, 4:45 PM
shilpa
shilpa - avatar
0
Like whan you play a game and it must continuesly calculating game physics , grafics...
2nd Nov 2016, 12:13 AM
dede 64 (a008x8)
dede 64 (a008x8) - avatar