General :: Use 'ntpdate' Only Or Another Command?
Jan 12, 2010
i like to ask something regarding network time protocol.... if i use "ntpdate [URL]"..it shows the time synchronized with [URL]. but if i want to reset my time should i use 'ntpdate' only or another command?
View 1 Replies
ADVERTISEMENT
Jul 14, 2011
we are synchronizing server time with ntpdate command in cron.how often should it run?
View 3 Replies
View Related
May 11, 2011
ntpdate give err. ntpdate -q 10.3.71.11 server 10.3.71.11, stratum 0, offset 0.000000, delay 0.00000
11 May 15:10:56 ntpdate[21183]: no server suitable for synchronization found
View 2 Replies
View Related
Jun 29, 2010
I'm trying to sync the clock of an ubuntu desktop with the network with ntpdate -u <ntp-server> and in a matter or minutes it's growing an offset of a few hundred milliseconds and even more than one second. Is there anyway to guarantee that the time keeps synchronizing with the network more frequently? does it make sense that the offset grows so fast? Am I doing something wrong?
View 3 Replies
View Related
Nov 18, 2010
Can I use ntpdate after http servers and how? I use Ubunto 10.04 64bits.
View 1 Replies
View Related
Sep 9, 2009
I saw that there are 2 NTP services in /etc/init.d:
/etc/init.d/ntpd - the NTP daemon
/etc/init.d/ntpdate - what is this ? and what is the relation between the 2 services?
I mean... if there is ntpd to do all the clock sync, what is ntpdate's role?
View 3 Replies
View Related
Jul 10, 2010
I use CentOS release 5.3 (Final)I want centos to automaticaly run ntpdate each time the pc boots, how can I do that ?(I do not boot to KDE, just to plain konsole if that matters)
View 5 Replies
View Related
Aug 17, 2010
I have a boot problem. Is this just a kosmetic problem or is the syncronisation not working?
[Code]....
View 2 Replies
View Related
Oct 18, 2010
I'm attempting to install ntpdate on Debian etch and am getting the following errors
# apt-get install ntpdate
Reading package lists... Done
Building dependency tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
[Code]...
View 5 Replies
View Related
Nov 14, 2010
I have RHEL 5 joined to windows Domain and lately has been delaying in time like 20 - 30 mins off the domain controller. Any ideas why? It suddenly started this delays. I have to login and restart ntpd in order to sync and so users can login. Here is the output of ntpq -p:
[Code]....
I wonder is the * means that its syncing with itself? if yes how to make it to sync with my remote server dc1 (2nd line?)
View 3 Replies
View Related
Apr 19, 2010
I'm trying to synchronize a client with an ntpdate server. The ntp.conf file from the server has the following lines: # /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for
driftfile /var/lib/ntp/ntp.drift
# Enable this if you want statistics to be logged.
#statsdir /var/log/ntpstats/
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
[Code]...
View 1 Replies
View Related
Nov 2, 2010
I can't update my ubuntu clock with my server. If i run the command ntpdate domain.local, it gives me this erro (no server suitable for synchronization found) if i run the command nslookup domain.local it works well and found my server
View 3 Replies
View Related
Nov 25, 2010
What is the right way to keep updated the time on a server? Using ntpd daemon or ntpdate by crontab? I've two server in two different locations.. I've used
Quote: # ntpdate ntp1.ien.it
on both server, and the two times were staggered by ten minutes. How is it possible?
View 2 Replies
View Related
Mar 26, 2011
I know my way around MS Windows much better, but I just don't feel right trying to program something for Android on a Microsoft operating system. I am interested in Android programming so I followed the instructions on [URL] to install the environment on my computer...
I just installed the JDK, SDK, Eclipse successfully (or I assume):
* When I get to Step 4 where I'm supposed to run 'android' it will not run. I get the error message "android: command not found" (I am definitely in the right directory).
** When I double-click it in nautilus, it opens up in gedit. I can set the permissions in nautilus (through the properties - Allow executing file as a program) and get it to work,
My system:
Intel i7
Ubuntu 10.10 Maverick Meerkat
android-sdk-linux-x86
eclipse 3.6.2
View 5 Replies
View Related
Jul 3, 2009
I am using openSUSE 10.3.When I install software from tarball then to record time required I send output of date to beg.txt(when installation begins) and end.txt (when installation finishes).How can I append output of date to a file so I don't need two files?
View 4 Replies
View Related
Apr 30, 2011
I installed the Berkeley DB on the Ubuntu server and tried to access the dbxml from the command line and it returns command not found
path/to/dir/dbxml-2.5.16/install/bin$dbxml
-bash" dbxml: command not found
Can someone point me in the right direction
View 1 Replies
View Related
Jul 21, 2010
I want to be able to use Ctrl+R to have reverse-i search. Also if I press Shift+Up Arrow after typing the first few characters of a recently executed command then the shell should complete the command by finding the most recent commmand having the same first few characters.
View 1 Replies
View Related
Jun 7, 2010
Bash's command history is great, especially it is useful when adding the history -a command to the COMMAND_PROMPT.However, I'm wondering if there is a way to log the commands to a file as soon as the Return key is pressed, e.g. before starting the command and not on completion of the command (using the COMMAND_PROMPT option would save the command once the prompt is there again).
I read about auditing programs like snoopy and session recorder like script but I thought they're already too complex for the simple question I have. I guess that deactivating that script logs all the output of the command would lead already in the right direction but isn't there a quicker way to solve that probelm?
View 1 Replies
View Related
Apr 14, 2011
When you run the following cp command in the BASH terminal, how does Linux know which files are the source and which are the destination when copying multiple files from one location to another?How does Linux know that the services, motd, fstab, and hosts files are the source and the /home/fred/my_dir is the destination?This question came up in a Linux class and I was not sure of the answer. I was thinking it is based on the source path entered ending with a file path and the destination being a directory, but was not sure.
View 4 Replies
View Related
Nov 20, 2009
i'm trying to redirect the output of a command to the input of the next command. not sure if i'm going about this the right way. an easy method would be just to store the output of the previous command in a file and redirect input to read that file, but i'm curious to see if this can be done without writing to any files.
View 9 Replies
View Related
Mar 20, 2011
Possible Duplicate: What does this cryptic bash command mean? Why this command crashes Linux? :(){ :|:& };:
View 4 Replies
View Related
May 9, 2011
Up until now I've been using plink to remotely compile a project I'm working on. But recently the administrator from the remote server updated the distribution and messed up some configurations. My project has a lot of scripts written for tc shell (tcsh), and now the default shell is bash. There is no way to change this. Another problem is that now I need to run newgrp to change my default user group.
So... to work around this problem I've changed my .bashrc to run newgrp and then tcsh. If I do a normal connection using SSH, everything works as expected, but when using plink, or SSH to remotely execute commands, the shell gets stuck on the newgrp command. I think it's because both applications need a return value from newgrp to send the command I need to execute. Remotely running scripts that call a shell also get stuck like newgrp (newgrp also opens a new shell and that's why it gets stuck) my .bashrc is as follows:
Code:
user_grp=`id -g`
if [ $user_grp != 4919 ]; then
newgrp new_group_id
else
[code]....
View 4 Replies
View Related
Apr 4, 2011
i want in the website they ask to enter some input.Code:echo -e "<p>Please Enter Year : c</p> "read Yearif i use this command it will ask the user to enter year in command. but what i want is they ask the user to enter year in web browser.
View 14 Replies
View Related
Apr 29, 2010
i want to disable the su command on a server so that users cant run the su command i removed the comment from the 3 and 5 line in /etc/pam.d/su file but it doesnt seem to work the file is shown below
#%PAM-1.0
auth sufficient pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel" group.
[code]....
View 8 Replies
View Related
May 31, 2010
What's the command to delete bash command history?
View 4 Replies
View Related
Aug 19, 2009
I have a script which builds a project and then runs junit tests. However, if the build fails, the junit tests fail with the same error message.Therefore the command which runs the junit tests should only be executed if the build was successful.
View 3 Replies
View Related
Jul 2, 2011
I want to run gsettings list-schemas (which return a list of about 100 names separated by spaces)and somehow direct each name one at a time as the input to this command:gsettings list-recursivelyI've tried it with awk, and standard | piping and also as a string variable strvar=$(gsettings list-schemas) and using the $strvar as the input butam missing something in between I'm sure like for - while or proper syntax of awk etc
View 3 Replies
View Related
Nov 13, 2010
I want to use the output of a previous command as a parameter to another command. For example: to know where "nice" is stored i typed: which nice output: /usr/bin/nice now the second command i typed is: ls -l /usr/bin/nice Is there a way to have a single command like: ls -l which nice ?
View 4 Replies
View Related
Oct 14, 2010
How do I use the "history" command to fire the last run command?
View 3 Replies
View Related
Jun 24, 2011
how do you write the ASCII character #27 in the vim command line?
View 6 Replies
View Related