linux定时任务crond export变量问题群友案例
linux定时任务crond export变量问题群友案例 1)我写了一个重启resin的脚本,由于业务原因,需要定时在某一个时间重启下resin服务器,于是就在 crontab里配置了如下内容: 50 17 * * 1-5 root /usr/local/bin/resin_restart.sh 其中,resin_restart.sh内容如下: #!/bin/sh /usr/local/bin/xxresin_stop.sh /usr/local/bin/xxresin_start.sh 2)有问题的时刻到来了,服务器虽然定时起来了,但是却报了如下错误: Resin can't load com.sun.tools.javac.Main. Usually this means that the JDK tools.jar is missing from the classpath, possibly because of using a JRE instead of the JDK. You can either add tools.jar to the classpath or change the compiler to an external one with <java compiler='javac'/> or jikes. 但是