07-21-2023, 03:35 PM
I have the following script:
if( $timeout -ne $null )
{
& $var$timeout 2>&1 > $logDir\$logName
}
else
{
& $var2>&1 > $logDir\$logName
}
I'm curious about what `2>&1` is; or, what it represents. I don't know what it's called, otherwise, I'd look it up.
if( $timeout -ne $null )
{
& $var$timeout 2>&1 > $logDir\$logName
}
else
{
& $var2>&1 > $logDir\$logName
}
I'm curious about what `2>&1` is; or, what it represents. I don't know what it's called, otherwise, I'd look it up.