标签:jdk today log tde info shell 3.1 watch jvm
版本1
#!/bin/sh today=log_"$(date +%Y%m%d)" mkdir -p ./${today} cp -f /data/app/autoprice7/resin-pro-3.1.15/log/* ./${today}/ touch /data/app/autoprice7/resin-pro-3.1.15/log/start.info > /data/app/autoprice7/resin-pro-3.1.15/log/start.info touch /data/app/autoprice7/resin-pro-3.1.15/log/stderr.log > /data/app/autoprice7/resin-pro-3.1.15/log/stderr.log touch /data/app/autoprice7/resin-pro-3.1.15/log/stdout.log > /data/app/autoprice7/resin-pro-3.1.15/log/stdout.log touch /data/app/autoprice7/resin-pro-3.1.15/log/watchdog-manager.log > /data/app/autoprice7/resin-pro-3.1.15/log/watchdog-manager.log touch /data/app/autoprice7/resin-pro-3.1.15/log/jdk-out.log > /data/app/autoprice7/resin-pro-3.1.15/log/jdk-out.log touch /data/app/autoprice7/resin-pro-3.1.15/log/jvm-auto7.log > /data/app/autoprice7/resin-pro-3.1.15/log/jvm-auto7.log touch /data/app/autoprice7/resin-pro-3.1.15/log/jvm-auto7.log.bak > /data/app/autoprice7/resin-pro-3.1.15/log/jvm-auto7.log.bak
标签:jdk today log tde info shell 3.1 watch jvm
原文地址:https://www.cnblogs.com/stuhjf/p/10289210.html