Anders Johansson wrote:
On Tuesday 01 June 2004 20.18, C Hamel wrote:
Wow!! I'm really impressed with the number of people who find it difficult to see the work SCRIPT!! <LOL>
and I'm impressed by the number of people who haven't a clue what a script is.
OK, are you sitting down- you are about to be impressed again :-). I didn't know that. I always assumed that a script was akin to a batch file (as in Windows).
A script is a sequence of one or more shell commands.
ls
is a script
killall
is a script
if you want to put your script in a file, you should put #!<command> on the first line, where <command> is the program you want to execute your sequence of commands. That's it. That's what a script is.
When I read the above you could have blown me over with a feather. Live and learn. Could this then be the reason why what is suggested in Suse's Support Database about getting the time synced with a time server is not working for me. The SD states that to sync time one issues the command ntpdate <URL of time server> followed by hwclock -w and Voila! your system clock will be in perfect sync with the atomic (or neutron or whatever) clock of the server of your choice. What I have been doing, as root, is to issue this command after I have made a connection to the 'Net: ntpdate 203.21.37.18 && hwclock -w and the clock gets synced. The SD further states that one can automate this by creating a file called ip-up.local in /etc/ppp/ and placing these commands in it and the time will be synced on each connect to the 'Net. So I did as suggested - but this doesn't appear to be working because my time can get anything up to 90 seconds out after the connection and me executing the commands manually a few seconds after the connect. From your comments about the '#!<command>', do I need to rewrite the ip-up.local file to begin with #!ntpdate 203.21.37.18 #!hwclock -w ? (I'd try doing this right now but I am too worried about having smoke come out of the box- this system has been up and running too well since I installed v9.0 when it was released :-).) Cheers. -- I am not young enough to know everything.