Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^6: redirection problem

by grizzley (Chaplain)
on Jun 22, 2012 at 15:19 UTC ( #977860=note: print w/ replies, xml ) Need Help??


in reply to Re^5: redirection problem
in thread redirection problem

Yes, it is the first one. I installed strawberry perl 5.12, changed registry to point at it and this one worked:

C:\temp>ftype Perl Perl="C:\strawberry\perl\bin\perl.exe" "%1" %* C:\temp>script.pl aabc C:\temp>script.pl > strawberry.txt C:\temp>type strawberry.txt aabc
I'll try to install AS 5.12 to see how it works (on Monday).


Comment on Re^6: redirection problem
Download Code
Re^7: redirection problem
by BrowserUk (Pope) on Jun 22, 2012 at 16:35 UTC

    Try removing the assoc and ftype prior to doing the installation.


    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.

    The start of some sanity?

      It didn't help either. I've installed Strawberry once again and no progress. Then uninstalled and installed AS 5.12.4 32-bit, but no success either. But... started digging and after finding similar posts for Groovy and Python I followed one of the links. This is actually very old fix for Win2000, but adding mentioned InheritConsoleHandles registry key solved my problem.

        Cool that you've fixed your problem.

        Strange that such an old hotfix that will've been long since rolled up into service packs and (should) have been applied at source since Vista, should suddenly reappear in 7. And only for some people.

        Even weirder is that registry key does not exist on my machine, but I have never seen the problem. And I run all my scripts via the associations. IF the key was there by default and something was deleting it on afflicted machines, it would make sense. But the need to add it -- only on afflicted machines -- is just downright nonsensical.

        There is still something more to this problem to be discovered. The only suspect I have at the moment is Strawberry Perl which I have never installed on this machine, but that is tenuous at best.


        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.

        The start of some sanity?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (16)
As of 2014-09-23 15:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (224 votes), past polls