Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: process redirection

by pbeckingham (Parson)
on Jul 25, 2005 at 13:16 UTC ( #477802=note: print w/replies, xml ) Need Help??


in reply to process redirection

What happens if you change directories first?



pbeckingham - typist, perishable vertebrate.

Replies are listed 'Best First'.
Re^2: process redirection
by SimonClinch (Deacon) on Jul 25, 2005 at 13:28 UTC
    ...putting that into code and showing how to redirect the other output as well:-
    system( "cd $mydir; $command > cmd.log 2>\&1" );

    One world, one people

Re^2: process redirection
by pavan_gpk (Initiate) on Jul 26, 2005 at 05:03 UTC
    Hi if i change my directory first 'system' cant fetch the executable file in that directory and giving error.. let me explain more clearly what exactly i am looking for i need to run 'build.exe' that generates .cab's/.exe's files in current directory not to STDOUT.but i need to generate those files in the specfied path or directory that i specify.. thanks pavan..

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://477802]
help
Chatterbox?
[stevieb]: perldigious: video near our hq in Montreal. Here in Calgary, it's -28c... we've only got 3" of snow so far, but there are several feet in the mountains already
[perldigious]: Snowshoeing time stevieb? I need to buy a pair so I can walk my German Shepherd properly through the country.
[stevieb]: yeah, I snowshoe a fair amount in the mountains. I also use spikes similar to these very often as well
[perldigious]: Discipulus: alternate link
[stevieb]: LOL you can easily replace "Helsinki" with "Alberta"
[perldigious]: I used to live at the top of a very steep hill stevieb, I can relate to the video. Literally used to have to build up momentum and try to force my vehicle to make it up the hill to park in my driveway properly... didn't always make it.
[choroba]: Why don't they use tire chains?

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (10)
As of 2016-12-06 16:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (112 votes). Check out past polls.