My /etc/rc.local
is:
#!/bin/sh
touch /var/lock/subsys/local
/data/automatic/ntpdate.sh
My /data/automatic/ntpdate.sh
is:
#!/bin/sh
echo "RWQERWER" >> /data/logs/1.log
ntpdate ntp.fudan.edu.cn >> /data/logs/1.log
The echo "RW...." is worked,ntp has installed. ntpdate.sh is 744 , but ntpdate ntp.fudan.edu.cn is run failed.
Outside at bash command line ,the /data/automatic/ntpdate.sh
and ntpdate ntp.fudan.edu.cn >> /data/logs/1.log
both run successfully .
What should I do ? Thanks first !