Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-23-2011, 12:53 PM   #1
Registered: Nov 2007
Posts: 69

Rep: Reputation: 15
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:


I also need this script to inject

5 * * * * /usr/sbin/ntpdate -b

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,
Old 03-23-2011, 01:01 PM   #2
LQ Guru
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
You don't think? Have you tried it yet?
Old 03-23-2011, 06:04 PM   #3
Registered: Nov 2007
Posts: 69

Original Poster
Rep: Reputation: 15
yes i tried it and it didnt work


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to modify monitor settings in SUSE 11.0 riba43 SUSE / openSUSE 4 11-17-2008 07:30 AM
Modify default settings for new users pramka SUSE / openSUSE 6 04-05-2008 11:07 PM
Cannot modify desktop settings +samba +profiles asmar Linux - Networking 0 12-28-2006 08:28 AM
Modify default user settings Fedora Core 4 klnasveschuk Fedora 1 07-22-2005 08:43 AM
firewall- cannot modify settings rob7712 Linux - Networking 3 04-01-2003 04:13 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration