Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^5: Perl replacement for

by BrowserUk (Pope)
on Mar 05, 2013 at 00:42 UTC ( #1021728=note: print w/replies, xml ) Need Help??

in reply to Re^4: Perl replacement for
in thread Perl replacement for

It appears that on Windows 7 32 and 64 bit, you can run into scenarios where choice will never timeout even though it is supposed to.

Hm. Can't reproduce that.

It's also pretty implausible that a sleep within a console application would in any way be affected by whether the console it is running in has focus or not.

But if your Perl script works for you; that's all that matters :0

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^6: Perl replacement for
by onelander (Sexton) on Mar 05, 2013 at 01:32 UTC

    What is interesting is that the problem does not appear to be a sleep at all but the actual Microsoft choice program.

    The batch scripts don't use sleeps when calling choice since it handles all of that itself. The batch scripts just wait for return codes.

    Either way, I have been able to make the code much more CPU efficient but I am running into some other problems with Win32 support of signals. It also helps in that it gives me more learning opportunities.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021728]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2018-08-17 21:27 GMT
Find Nodes?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:

    Results (184 votes). Check out past polls.