I have this script that checks to see if ntp is enabled on a machine
It retuns
if it is loaded, is there a way to script it so that if it is loaded it does not say anything but if it is not loaded it will a) say that it is not loaded b) load it
Hi Group ,
I m trying to execute commands on some other system using write command but inspite of executing the commands they r passed as simple messages.
- i m writing
>write user-id
! ls
o
ctrl-d
inspite of executing the command ls,other terminal shows ! ls.
Thnx in advance. (2 Replies)
Hello,
i am trying to write a script for terminal for my mac that i may drag into the terminal and will excute the following command:
script -akq Desktop/TerminalLogin/Cisco1Bob.txt
telnet x.x.x.x
the problem is that when i drag the text file to the terminal window the script stops after... (6 Replies)
Hello sir,
I want to monitor my work on the terminal.I know we can use script command.But every time when I start the terminal, I have to type script to start it.I want to automate it. So where should I include this command so that it will start as soon as I start the terminal ???? (2 Replies)
i am having a weird error on mac os x running some shell scripts. i am a complete newbie at this and this question concerns 2 scripts. one of which a friend of mine wrote (videochecker.sh) a couple weeks ago and it's been running fine on another machine.
then last week i wrote capture.sh and it... (2 Replies)
Hello,
I am trying to learn how to pass something more than a one-command startup for gnome-terminal.
I will give an example of what I'm trying to do here:
#! /bin/bash
#
#TODO write this for gnome and xterm
USAGE="
______________________________________________
${0##*/}
run... (0 Replies)
Hey, I am trying to write a script that will open all of my session windows, and then secure shell into the appropriate server in the new windows. Seems simple, but I cant get it to work! Please help! :confused: (1 Reply)
Hello i am having an issue with bash script and this is the code
now=$(cat hosts1.txt | awk '{print $2;}')
while read n ;do
ssh root@$now 'useradd test1; echo -e "test1\ntest1" | passwd test1 && echo "test1 ALL=(ALL:ALL) ALL" >> /etc/sudoers'
When i execute only part with cat, it... (8 Replies)
I need to execute apt-cdrom to designate the pendrive using LM 18.3x 'live". (instead of CD-Rom)
Rick (7 Replies)
Discussion started by: 69Rixter
7 Replies
LEARN ABOUT DEBIAN
ntpd.conf
NTPD.CONF(5) File Formats Manual NTPD.CONF(5)NAME
ntpd.conf - Network Time Protocol daemon configuration file
DESCRIPTION
This manual page describes the format of the ntpd(8) configuration file.
The optional weight keyword permits finer control over the relative importance of time sources (servers or sensor devices). Weights are
specified in the range 1 to 10; if no weight is given, the default is 1. A server with a weight of 5, for example, will have five times
more influence on time offset calculation than a server with a weight of 1.
ntpd.conf has the following format:
Empty lines and lines beginning with the `#' character are ignored.
Keywords may be specified multiple times within the configuration file. They are as follows:
listen on address
OpenNTPd has the ability to sync the local clock to remote NTP servers and, if this directive is specified, can act as NTP server
itself, redistributing the local clock.
Specify a local IP address or a hostname the ntpd(8) daemon should listen on to enable remote clients synchronization. If it
appears multiple times, ntpd(8) will listen on each given address. If `*' is given as an address, ntpd(8) will listen on all local
addresses. ntpd(8) does not listen on any address by default. For example:
listen on *
or
listen on 127.0.0.1
listen on ::1
sensor device [correction microseconds] [weight weight-value]
Specify a timedelta sensor device ntpd(8) should use. The sensor can be specified multiple times: ntpd(8) will use each given sen-
sor that actually exists. Non-existent sensors are ignored. If `*' is given as device name, ntpd(8) will use all timedelta sensors
it finds. ntpd(8) does not use any timedelta sensor by default. For example:
sensor *
sensor udcf0
An optional correction in microseconds can be given to compensate for the sensor's offset. The maximum correction is 127 seconds.
For example, if a DCF77 receiver is lagging 15ms behind actual time:
sensor udcf0 correction 15000
server address [weight weight-value]
Specify the IP address or the hostname of an NTP server to synchronize to. If it appears multiple times, ntpd(8) will try to syn-
chronize to all of the servers specified. If a hostname resolves to multiple IPv4 and/or IPv6 addresses, ntpd(8) uses the first
address. If it does not get a reply, ntpd(8) retries with the next address and continues to do so until a working address is found.
For example:
server 10.0.0.2 weight 5
server ntp.example.org weight 1
To provide redundancy, it is good practice to configure multiple servers. In general, best accuracy is obtained by using servers
that have a low network latency.
servers address [weight weight-value]
As with server, specify the IP address or hostname of an NTP server to synchronize to. If it appears multiple times, ntpd(8) will
try to synchronize to all of the servers specified. Should the hostname resolve to multiple IP addresses, ntpd(8) will try to syn-
chronize to all of them. For example:
servers pool.ntp.org
FILES
/etc/openntpd/ntpd.conf
default ntpd(8) configuration file
SEE ALSO ntpd(8), sysctl(8)HISTORY
The ntpd.conf file format first appeared in OpenBSD 3.6 .
$Mdocdate: October 2 2007 $ NTPD.CONF(5)