让shell自动记录详细的log信息
2018-12-19 本文已影响0人
鸟它鸟
#!/bin/bash -x
echo "" > /var/log/autocheck.log
exec 1>>/var/log/autocheck.log 2>>/var/log/autocheck.log
#!/bin/bash -x
echo "" > /var/log/autocheck.log
exec 1>>/var/log/autocheck.log 2>>/var/log/autocheck.log