Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Perl in Windows - STDOUT to file Behavior difference by run context

by dasgar (Deacon)
on Mar 11, 2014 at 22:55 UTC ( #1077925=note: print w/ replies, xml ) Need Help??


in reply to Perl in Windows - STDOUT to file Behavior difference by run context

Can you clarify what you mean by "in the run box"? My only guess is that you're clicking on the Start and then clicking on Run. If that's correct, it's possible that your calls to your Perl script and piping to output to a file may be working. However, your examples are using relative path (i.e. using the current directory) instead of a full path. You might want to check the directory where your perl.exe file is located. You just might find the files that you created from your calls from the "run box".

This may not be a quick and easy thing to do, but you might want to consider redesigning your script(s) to take an optional input argument that specifies a file to log output to rather than relying on using '>' from the command prompt environment to pipe the output to a file.


Comment on Re: Perl in Windows - STDOUT to file Behavior difference by run context
Re^2: Perl in Windows - STDOUT to file Behavior difference by run context
by AngelOnTheSideline (Initiate) on Mar 12, 2014 at 14:50 UTC
    Thanks for your reply. After a couple of test runs, I did search the system for the file, but it wasn't anywhere to be found because the redirect wasn't working. Simply logging my output wasn't enough. I inherited a 5000+ line script that calls into a .pm which then calls into a .dll and I needed all output to be in a file for debug and evaluation. One of your peers had the proper cmd line I needed to get it done without extra code.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2014-11-29 06:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (203 votes), past polls