Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
i am trying to use win32::process::Create() on my windows server 2008 and i want to redirect my screen output to log.txt so i am using code shown below but its giving me errors
Error looks like this,
ERROR: INIT: '>' is an unrecognized command line parameter
ERROR: INIT: 'log.txt' is an unrecognized command line parameter
ERROR: INIT: '2>&1' is an unrecognized command line parameter
use strict; use warnings; use Win32::Process qw(); Win32::Process::Create($ProcessObj, "C:\\winnt\\system32\\notepad.exe", "notepad temp.txt > log.txt 2>&1", 0, NORMAL_PRIORITY_CLASS, ".")|| die ErrorReport();
|
|---|