note 55632 deleted from function.exec by cmb

From: Date: Sun, 22 Sep 2019 07:19:27 +0000
Subject: note 55632 deleted from function.exec by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-212273@lists.php.net to get a copy of this message
Note Submitter: vdweij at hotmail dot com ---- It is possible to only capture the error stream (STERR). Here it goes... (some_command par1 par2 > /dev/null) 3>&1 1>&2 2>&3 -First STDOUT is redirected to /dev/null. -By using parenthesis it is possible to gain control over STERR and STOUT again. -Then switch STERR with STOUT. The switch is using the standard variable switch method -- 3 variables (buckets) are required to swap 2 variables with each other. (you have 2 variables and you need to switch the contents - you must bring in a 3rd temporary variable to hold the contents of one value so you can properly swap them). This link gave me this information: http://www.cpqlinux.com/redirect.html

« previous php.notes (#212273) next »