Michael,
Microsoft's new Windows Scripting Host 5.6 allows you create a session and capture the
STDOUT and STDERR, as well as write to STDIN.
James
use Win32::OLE;
$objShell = Win32::OLE->new("WScript.Shell");
# // Generates 'Could Not Find...' on STDERR
$objExec = $objShell->Exec("CMD /c DEL
On Thu, 09 Oct 2003, Sui Ming Louie wrote:
> One can use >> to append to a log file. A single redirect (>) creates a new
> file. If the file already exists, the previous contents will be lost.
That only redirects STDOUT. How do you also redirect STDERR?
The Unix
dmake test > log.txt 2>&