> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Andy
> Smelt
> Sent: Sunday, July 31, 2005 4:25 PM
> To: activeperl@listserv.ActiveState.com
> Subject: Problem reading output from an executable.
>
>
> Help!
>
> I'm trying to automate (on Wondows Ser
Help!
I'm trying to automate (on Wondows Server) a file
restore using (Legato Networker) recover.exe.
I'm using OPEN, piping the o/p of the command to a
file handle and then WHILEing it. When the command is
run from a command prompt it keeps the user informed
of its progress. Stuff like "Looking
On Sun, 31 Jul 2005 12:05:07 -0700, you wrote:
>wouldn't it be simpler to write something like:
>
>my $dirname = "something";
>opendir DH, $dirname or die "opening directory $dirname: $!";
>
>my @files = readdir DH;
>
>
>my $random_file;
>
>do {
>$random_file = "$dirname/$files[ int rand