Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Re: forking in winblows ?

by Mr. Muskrat (Canon)
on Apr 25, 2002 at 16:52 UTC ( [id://162031]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: forking in winblows ?
in thread forking in winblows ?

So why not put the commands into a batch file and pipe the output of the commands to a file?
test.bat -------- dir c:\some\path\ >>c:\path\to\test.txt
then use the system call and read the output in perl:
system("c:\path\to\test.bat"); open(OUTPUT, "<c:/path/to/test.txt") || die "couln't open ...yadda..." +; @output=<OUTPUT>; close(OUTPUT);

Just my $0.02.

Matthew Musgrove
Who says that programmers can't work in the Marketing Department?
Or is that who says that Marketing people can't program?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-12 11:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found