Hi Satya,

On Wed, 5 Jun 2013 11:18:14 +0000
"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.
> 

Some thoughts:

1. You can try using a terminal multiplexer such as
http://en.wikipedia.org/wiki/Tmux or http://en.wikipedia.org/wiki/GNU_Screen .

2. You can try running the program in the background - as a daemon.

Regards,

        Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Perl Humour - http://perl-begin.org/humour/

Bugs are too afraid to reproduce on Chuck Norris’ computer. As a result, when
he uses Microsoft Windows, it behaves just like a Linux system.
    — http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/

Please reply to list if it's a mailing list post - http://shlom.in/reply .

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to