何をしたいのかよく知らんけどシェルスクリプトの最初で
exec 9> /tmp/stdoutexec 8> /tmp/stderrexec 7> /tmp/stdout_stderrexec 1> >(tee /dev/fd/9 >&7)exec 2> >(tee /dev/fd/8 >&7)
とかやったらいい感じにならんか?
何をしたいのかよく知らんけどシェルスクリプトの最初で
exec 9> /tmp/stdoutexec 8> /tmp/stderrexec 7> /tmp/stdout_stderrexec 1> >(tee /dev/fd/9 >&7)exec 2> >(tee /dev/fd/8 >&7)
とかやったらいい感じにならんか?
hisso.li is a social network. It runs on GNU social, version 2.0.0-alpha0, available under the GNU Affero General Public License.
All hisso.li content and data are available under the Creative Commons Attribution 3.0 license.