Re: how to make perl program run continue when i press control+s to pause screen output

2013-06-07 Thread Gerhard Jungwirth
Hi On 06/06/2013 06:25 PM, Jim Gibson wrote: > The program will keep running, but at some point, if the program is writing > bytes to the standard output stream, the buffer for that stream will fill up. > At that point, the program will block doing a write until the buffer has been > depleted a

Re: how to make perl program run continue when i press control+s to pause screen output

2013-06-06 Thread shawn wilson
I seriously think you've found a feature and you don't know what it is and just want to use it because it's there. Please read this: http://en.wikipedia.org/wiki/Software_flow_control After you're done, I recommend this in your shell rc: stty -ixon On Thu, Jun 6, 2013 at 12:49 PM, Robert Wohlfart

Re: how to make perl program run continue when i press control+s to pause screen output

2013-06-06 Thread Robert Wohlfarth
On Thu, Jun 6, 2013 at 11:29 AM, Nemana, Satya wrote: > Thanks Travis, Shlomi , Shawn, Luca, and James. > > The program pauses i.e does not run further when I press Cntrl –S > > When I press Ctrl-Q again, the program resumes excactly where it was when > I hit cntrl-q. > > It is not a

RE: how to make perl program run continue when i press control+s to pause screen output

2013-06-06 Thread Nemana, Satya
...@yahoo.com] Sent: 06 June 2013 17:04 To: Nemana, Satya Cc: beginners@perl.org Subject: Re: how to make perl program run continue when i press control+s to pause screen output On Jun 5, 2013, at 4:18, "Nemana, Satya" mailto:snem...@sonusnet.com>> wrote: Hi I am having a slig

Re: how to make perl program run continue when i press control+s to pause screen output

2013-06-06 Thread Jim Gibson
On Jun 6, 2013, at 9:04 AM, Travis Thornhill wrote: > > > On Jun 5, 2013, at 4:18, "Nemana, Satya" 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

Re: how to make perl program run continue when i press control+s to pause screen output

2013-06-06 Thread Travis Thornhill
On Jun 5, 2013, at 4:18, "Nemana, Satya" 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 whil

Re: how to make perl program run continue when i press control+s to pause screen output

2013-06-06 Thread shawn wilson
If it's a daemon, use something like start-stop-daemon or use something like Net::Daemon (search cpan). I prefer the former as I find it easier to debug but do have my programs create a pidfile vs having start-stop-daemon do it. If you just want it put in the background sometimes but generally wan

Re: how to make perl program run continue when i press control+s to pause screen output

2013-06-06 Thread Luca Ferrari
On Wed, Jun 5, 2013 at 1:18 PM, Nemana, Satya 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 runnin

Re: how to make perl program run continue when i press control+s to pause screen output

2013-06-05 Thread Shlomi Fish
Hi Satya, On Wed, 5 Jun 2013 11:18:14 + "Nemana, Satya" 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 > ke

Re: how to make perl program run continue when i press control+s to pause screen output

2013-06-05 Thread James Alton
Alternatively, output to a file, don't sleep (unless you really need to?), then tail that file in another console. (This would be for if you wanted to see different parts of the "printed" output while the program is still going.) James On Wed, Jun 5, 2013 at 5:18 AM, Nemana, Satya wrote: > H

Re: how to make perl program run continue when i press control+s to pause screen output

2013-06-05 Thread James Alton
Beginner to beginner here, but if you wanted to do two things at once, wouldn't you just need to use threads? http://perldoc.perl.org/threads.html (Disclaimer: Threads might be overkill, but it was the first thing I thought of.) James On Wed, Jun 5, 2013 at 5:18 AM, Nemana, Satya wrote: > Hi*