10-31-2006
Perderabo
Thank you.
XNTPD is not a problem but we are not using it.
The XNTPD is commented at netdaemons. So, XNTPD is not running.
like:
# XNTPD: Set to 1 to start xntpd (0 to not run xntpd)
Only thing I want is to make the time that it is not changed automatically.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm new to UNIX....
I'm running SCO UNIX and would like to disable routed daemon from being start at boot time.
How should I do this????? Please help. (2 Replies)
Discussion started by: rrivas
2 Replies
2. Shell Programming and Scripting
Hi all,
Does anyone know if it is possible to enable/disable a cron job within a script?
I currently have a cron job which runs every minute but now it seems that sometimes I would like to turn this job off if a condition is met. I would then like to re-enable the job at a later date.
... (5 Replies)
Discussion started by: pxy2d1
5 Replies
3. UNIX for Dummies Questions & Answers
How to enable and disable the auto mount option for USB devices.? (3 Replies)
Discussion started by: ungalnanban
3 Replies
4. Ubuntu
Hi all,
I am using Ubuntu 10.04 LTS in Samsung N148. I can't see any option to adjust brightness in System->Preference->monitor. Is there any shell command to adjust brightness ? I have used xgamma -gamma but it change the gamx not brightness.
Cheers (7 Replies)
Discussion started by: gvj
7 Replies
5. UNIX for Advanced & Expert Users
We have an ancient Unix box from Siemens. Every year the system automatically changes the time for EST or DST. Unfortunately since the box is so old the dates that the times change are the old dates and not the current ones set during (I think) the Bush years.
When I have to set the time back... (3 Replies)
Discussion started by: jbcamel
3 Replies
6. Red Hat
Good morning,
My first post and first visit, so hello. I have been asked to see if one of our Linux boxes can have it's time sync automatically because the person who built the system has told our staff it cannot be done. To me that raised some flags because although I am no Linux expert, I just... (12 Replies)
Discussion started by: YSupport
12 Replies
7. Shell Programming and Scripting
im trying to print all lines in the /var/log/syslog file that contain the pattern CRON. and after all the lines have been printed, i want a total of all the lines that contained "CRON" to be printed at the end.
the below command is printing the correct lines, but it is giving me the sum of all... (1 Reply)
Discussion started by: SkySmart
1 Replies
8. Red Hat
Hello Guys - I need to disable xen server not to start when the server is rebooted.
1) What is the parameter to be used to do this..below is the entry in my config file...
on_reboot = "restart"
2) What is the default behaviors of the xen on reboot ? in case we comment this line from config... (0 Replies)
Discussion started by: saurabh84g
0 Replies
9. Shell Programming and Scripting
Hi,
I have been trying to do a small fun project for myself.
I want to run a command for 45 seconds.
And to get the final output of this command, the script requires I push the "q" key on my keyboard and then the final output file becomes available.
I tried the following script. But it... (12 Replies)
Discussion started by: jacobs.smith
12 Replies
10. Shell Programming and Scripting
Dear All,
Hope you are rocking.
I was using publicly available tools to do a task to chop a region into equal number of bins. But the glitch with this tool is that it causes the last region to carry lower number of bases than requested. But I want the first bin to have the lower ones.
Here... (7 Replies)
Discussion started by: jacobs.smith
7 Replies
ADJTIME(3) Linux Programmer's Manual ADJTIME(3)
NAME
adjtime - correct the time to synchronize the system clock
SYNOPSIS
int adjtime(const struct timeval *delta, struct timeval *olddelta);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
adjtime(): _BSD_SOURCE
DESCRIPTION
The adjtime() function gradually adjusts the system clock (as returned by gettimeofday(2)). The amount of time by which the clock is to be
adjusted is specified in the structure pointed to by delta. This structure has the following form:
struct timeval {
time_t tv_sec; /* seconds */
suseconds_t tv_usec; /* microseconds */
};
If the adjustment in delta is positive, then the system clock is speeded up by some small percentage (i.e., by adding a small amount of
time to the clock value in each second) until the adjustment has been completed. If the adjustment in delta is negative, then the clock is
slowed down in a similar fashion.
If a clock adjustment from an earlier adjtime() call is already in progress at the time of a later adjtime() call, and delta is not NULL
for the later call, then the earlier adjustment is stopped, but any already completed part of that adjustment is not undone.
If olddelta is not NULL, then the buffer that it points to is used to return the amount of time remaining from any previous adjustment that
has not yet been completed.
RETURN VALUE
On success, adjtime() returns 0. On failure, -1 is returned, and errno is set to indicate the error.
ERRORS
EINVAL The adjustment in delta is outside the permitted range.
EPERM The caller does not have sufficient privilege to adjust the time. Under Linux the CAP_SYS_TIME capability is required.
CONFORMING TO
4.3BSD, System V.
NOTES
The adjustment that adjtime() makes to the clock is carried out in such a manner that the clock is always monotonically increasing. Using
adjtime() to adjust the time prevents the problems that can be caused for certain applications (e.g., make(1)) by abrupt positive or nega-
tive jumps in the system time.
adjtime() is intended to be used to make small adjustments to the system time. Most systems impose a limit on the adjustment that can be
specified in delta. In the glibc implementation, delta must be less than or equal to (INT_MAX / 1000000 - 2) and greater than or equal to
(INT_MIN / 1000000 + 2) (respectively 2145 and -2145 seconds on i386).
BUGS
A longstanding bug meant that if delta was specified as NULL, no valid information about the outstanding clock adjustment was returned in
olddelta. (In this circumstance, adjtime() should return the outstanding clock adjustment, without changing it.) This bug is fixed on
systems with glibc 2.8 or later and Linux kernel 2.6.26 or later.
SEE ALSO
adjtimex(2), gettimeofday(2), time(7)
COLOPHON
This page is part of release 3.25 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2008-06-22 ADJTIME(3)