basic script to modify time settings
I am trying to write a basic script on a linux box to do the following:
change the timezone to UTC. I will need to make sure /etc/sysconfig/clock only has the following: HWCLOCK=-u SYSTOHC=yes TIMEZONE=UTC DEFAULT_TIMEZONE=UTC I also need this script to inject 5 * * * * /usr/sbin/ntpdate -b 192.168.0.1 in crontab i dont think i have the crontab logic right as im probably missing a ' or a " maybe i just need to use it in a .sh file please let me know thank you, |
You don't think? Have you tried it yet?
|
yes i tried it and it didnt work
|
All times are GMT -5. The time now is 08:25 PM. |