Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Output redirection

by markkawika (Monk)
on Jun 12, 2009 at 21:18 UTC ( [id://771102]=note: print w/replies, xml ) Need Help??


in reply to Output redirection

It sounds to me like the scripts you're calling, scriptA.pl and scriptB.pl are creating output files to specific directories they are choosing.

If a single invocation of a script is creating thousands of files, then it is not using STDOUT for its output; it's creating files. You cannot do anything to change that short of modifying those scripts.

It sounds to me like your only choice is going to be to move those files after they've been created to the location you want them to end up.

Replies are listed 'Best First'.
Re^2: Output redirection
by Anonymous Monk on Jun 12, 2009 at 21:33 UTC
    Maybe possible with chdir or chroot
      Or making scriptA and scriptB links to the desired output dir.

        Hard- and softlinks are available on NT-based Windows, at least on NTFS, but they are rather surprising for the average Windows user, and they don't behave like hardlinks / softlinks on Unix-like systems.

        Alexander

        --
        Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

      chdir may work, but I've never heard of a chroot implementation on WinXP or similar.

      Alexander

      --
      Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-09-08 00:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.