This project is read-only.
1

Closed

Capture STDERR from commands

description

To keep the display clean, and assist with troubleshooting script errors, redirect STDERR (using '2>>') to MIR-ROR.log file for all commands. If all goes well, very little will be added to the MIR-ROR.log file; but if something goes wrong, there is a much higher probability we will know what it was.
 
Example:
 
showpriv SeLockMemoryPrivilege 2>> %2:\Livecap_%COMPUTERNAME%\MIR-ROR.log > %2:\Livecap_%COMPUTERNAME%\showpriv.log
psinfo -d -s 2>> %2:\Livecap_%COMPUTERNAME%\MIR-ROR.log > %2:\Livecap_%COMPUTERNAME%\PSInfo.log
Closed Mar 22, 2012 at 7:12 AM by RussMcRee
Update included in 2.0 stable release.

comments