Hi All,I tried the following statement and it worked fine.my $output = `$s1 2>&1`;Thanks for your participation!-Jenni
my $path = 'D:/iw-home/tmp/plcdatadepl3.txt';if (open(FILE, ">$path")) { print FILE $output; close(FILE);}else { # Stdout or Log print qq(ERROR - Can not Open "$path", $!\n);}