On Jun 5, 2013, at 4:18, "Nemana, Satya" <snem...@sonusnet.com> wrote:
> Hi > > I am having a slight difficulty in getting this accomplished. > When my perl program keeps running, I sometimes need to pause the screen > output and check some things on the output. > But, I want my program to still keep running while I pause the screen. > (using ctrl+s on putty) > But the program also is pausing.(I tested this with a simple program which > prints number from 1-100 sleeping 1 second after each print , but the main > program I am trying to get this working is much complex, so will try things > here first before modifying the original program) > > Test Code : > > use strict; > use warnings; > for (my $i=1; $i <= 200; $i++) > { > print "\ni is $i"; > sleep 1; > } > > Please, could someone throw some light on which areas of perl to look at for > this. > I am not looking for a program, but specific areas where I have to do the > reading. > I will come back with the program once I can make out what to do for any > suggestions. > > Thanks, > Satya > Your program should still be running, and it should still accept keyboard input. After ctrl-s, you just can't see any input/output. Try ctrl-q to recover.