westdc-ftp/root/incron-wsn.sh

7 lines
170 B
Bash
Executable File

#!/bin/bash
tmp=$RANDOM
cp /var/www/ftp2.westgis.ac.cn/wsndata.sh /root/wsndata-${tmp}.sh
chmod +x /root/wsndata-${tmp}.sh
/root/wsndata-${tmp}.sh >> /var/log/wsn.log &