> -----Original Message-----
> From: Sugumar [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 19, 2002 2:47 PM
> To: [EMAIL PROTECTED]
> Subject: Redirecting Output
>
>
> Hi,
>
> I'm trying this command from my perl program system (
> "perldoc perldsc >
> tmp.txt"). I don't see the output going to the file tmp.txt;
> instead it
> shows the output
> in the screen.How could I get the output in some text file.
I assume you're doing this on Windows, since what you've shown should work
fine on Unix.
Try this:
system("perl -S perldoc -t perldsc >tmp.txt");
perldoc is actually a .bat file on Windows, and batch files don't seem to
handle redirection properly on certain versions of Windows.
HTH
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]