cron

How to pipe only stderr in cron, and handle it as an arguement

01 8 * * * (bash hoge.sh >> /var/log/app/result.log) |& tee -a /var/log/app/result.log | fuga.sh "$(cat -)" Bash Reference Manual Bash Reference Manual tee(1) - Linux manual page fuga.sh can receive the value of "$(cat -)" as "$1".