Also, this will capture both STDOUT and STDERR:
$output = `sc \\\\$(hostname) stop SNMP 2>&1`note: works in Linux/Unix systems
In reply to Re: Re: Piping STDOUT
by fglock
in thread Piping STDOUT
by wahoowa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |