General :: Command Or Script Which Sets Time From Some Internet Timeserver Everytime?

Dec 19, 2010

I am a programmer working on embedded linux, On my device, I need to set time everytime when I want to use it to check my program.

Is there any command or script which sets time from some Internet timeserver everytime?

View 1 Replies


ADVERTISEMENT

General :: How Computer Sets Time

Apr 26, 2010

I want to know how the computer sets time? When I turn off my computer or it is not connected to internet it shows me the correct time. When I login to my computer after so many days, it shows me the correct time though it was turned off for so many days. How is it possible?

View 5 Replies View Related

Programming :: Set Time Using Settimeofday But It Sets Local Time?

Jan 12, 2010

I am trying to set time using settimeofday in linux. But it sets local time. i.e works like SetLocalTime in windows. But I want to set system time(like SetSystemTime in windows). I could'nt find no other api in linux. What should i do? I had tried with mktime/gmtime apis

View 3 Replies View Related

General :: Set Internet Time From Command Line?

Sep 2, 2009

how do I set the internet time from the command line?how to make a linux machine the time server within the domain?

View 1 Replies View Related

Slackware :: Apple Time Capsule DHCP Sets Bogus Hostname?

Jan 20, 2011

During Slackware 13.1 setup, I chose the hostname stella-sl2. This hostname is also the one that the system is displaying before I configured network access. After configuring wired network access to my Apple Time Capsule, my hostname suddenly changed to INTERFACE='eth0'. As a result I'm noticing some very strange things, like the login prompt which has become "INTERFACE='eth0' login: ".

After configuring wireless network access to the Time Capsule, the hostname changed to "INTERFACE='wlan0'". Note that, during boot, wlan0 is brought up AFTER eth0.

Also strange is this:

bash-4.1$ cat /etc/HOSTNAME
INTERFACE='eth0'.DNSSERVERS='10.0.1.1'
bash-4.1$ /bin/hostname
INTERFACE='wlan0'
bash-4.1$

Until now, it was only a minor annoyance, it didn't prevent anything from happening, internet connection was not affected. But now I'm configuring sendmail which needs to talk to a relay SMTP server, and sendmail "HELO"'s itself using the bogus hostname:

>>> HELO INTERFACE='wlan0'
<<< 501 HELO requires valid address
554 5.0.0 Service unavailable

Probably this is caused by the Time Capsule not adhering to standards. However, the Time Capsule's firmware is the latest version, so I cannot fix this. Is there a way to prevent dhcp from changing the hostname? How can I make sure that the hostname that I configured during setup remains active?

View 2 Replies View Related

General :: Saving The Results Of The Time Command While Discarding The Results Of The Command Being Timed

Apr 6, 2010

I'm timing how long it takes to run a command foo. I'm looking to append the results from the time command to a file, and discard the results from the foo command. I tried the following, but it didn't do what I want:

$ time ./foo > /dev/null >> output_from_time_command.txt

View 1 Replies View Related

General :: Using Time Command To Benchmark?

Mar 6, 2011

I am trying to use the time command to measure the execution time of a small program. The problem is that the command has three outputs. They look like this:

Code:
$ time ./a.out
real0m51.935s
user0m51.060s
sys0m0.040s

Should the execution time be the sum of the user and the sys time? sys time is really small.

View 2 Replies View Related

General :: Set Time Format Using Command?

Feb 22, 2011

I want to know how to set time format (12 hrs or 24 hrs) using command.I tried thisode:date +%T -s "2011-02-23 14:00"But it only displays 24 hrs format on TERMINAL but it does not SET 24 hrs format on the system

View 4 Replies View Related

General :: Time Duration From One Command To Another ?

Aug 8, 2011

I have made a shell script as below to find that how much time is taking between one command to another.

View 3 Replies View Related

General :: Starting Wireless Internet For The First Time On CentOS?

Apr 13, 2011

I've just installed CentOS 5.3 on my laptop and trying to connect to wireless internet connection at my home but I've found no success so far. I have a key on my laptop that turns blue when wifi is activated, but it is always red in linux so I guess I need to install some drivers, but I dont know what they are. When I use Windows, it automatically turns blue without doing anything. Also, yum doesnt work as well as its not connected to internet...

View 4 Replies View Related

General :: Tail Command Does Not Refresh All The Time?

Oct 26, 2010

I am running a script with nohup and this generates a lot of logs.

In order to view the log I use tail -f nohup.out

The problem is that the info supplied by this command is not always the latest//sometimes I need to use the command again order to view the latest info added to the nohup.out file.

View 3 Replies View Related

General :: Extracting Date And Time From The At Command?

Sep 10, 2009

I would appreciate help with how to extract the date and time from at command jobs. From what I can tell, the date and time is embedded in the file name (/var/spool/atjobs).I'd be using this information in a (bash) shell script.

View 14 Replies View Related

General :: Command Returns Too Much Of System Time

Aug 20, 2009

I use the time command to measure the wall-clock time of a GPU implementation of an algorithm. When I time the CPU execution of the algorithm time returns a negligible sys time. However, when I time the GPU execution time returns a sys time that is around 20-30% of the total time. If that time was comparable with the negligible sys time of the CPU I would achieve a speedup of a few times higher.

I suspect that the increased sys time is because of the GPU usage, which, I assume, takes some time for the OS because of the drivers etc. I am not sure though, and it is important to figure this out because it will improve my results a lot if I can ignore the sys time and use just the user time for speedup calculations. Also, is there a way to see, in detail, what is the sys running and takes so much time. I am thinking that I might be able to see if it is the driver indeed that causes this delay.

View 6 Replies View Related

General :: Better To Use 'at' Command Instead Of Time Variable In Shutdown?

Apr 20, 2010

I was reading that if I want to do a one time scheduled command, I should use at, which I've never done, as opposed to cron, which i'm kinda familiar with. But what I want to do is reboot my server at 3am tomorrow and force it to check the file systems with a shutdown -rF. For this do I even need to use "at" or could I just say shutdown -rF 3:00.Will that also know that I mean 3am tomorrow and not say in 3 minutes from now or 3pm?

View 14 Replies View Related

General :: Use History Command To Show The Time Stamp?

Apr 13, 2011

I want to use history command to show the time stamp, user id, ip address, command logged

View 1 Replies View Related

General :: Command - List Only Access Time And File Name?

Mar 19, 2010

How do I list only access time and file name? For example if I do ls -l --sort=time then

[Code]...

View 5 Replies View Related

General :: Scroll One Page At A Time In Linux At The Command Line?

Oct 12, 2010

In windows, you could do a dir | more to scroll one page a time.How does one do this in Linux?

View 2 Replies View Related

General :: Capture Elapsed Time For A File Copy Command?

Jan 25, 2010

I am troubleshooting file copy time issues between 3 servers. I need to copy the same file from server A to both server B and server C and compare the elapsed times for the copy. Is there an easy way to do this?

View 3 Replies View Related

General :: How To Program The Command Line To Run A Piece Of Code Multiple Time

Dec 4, 2010

So, I usually write/find a test case generator for any code that I write. This type of code generally leads to some file output. To be thorough, I try and generate many different files to test my code on.

Say the command is like this:

Is there a way to automate this for many different values of the parameters and generate many different files?

I tried:

I wasn't able to use the $i in the filename, and without it the command gave me no errors, but did nothing else either. I know the Unix command line is very powerful, and I have a feeling that this should be possible, but I just don't know how to do it.

View 3 Replies View Related

General :: FTP Through Command Prompt, Connections Times Out After Some Time Remaining Idle

Aug 23, 2010

while doing FTP through command prompt, connections times out after some time remaining idle, but doing ftp through browser, connection doesn't time out after some time remaining idle... why is it so?

View 2 Replies View Related

General :: Script To Execute A Command Based On The Last Modified Time Of A Folder

Oct 19, 2010

I need a script that executes a command based on a folder's last modified time.

if "/var/data" was modified in less than an hour then "/usr/local/etc/searchd stop" should be run

can we use "find -mmin +60 -type d" in conjunction with second command

View 1 Replies View Related

General :: Find A Proper Command To Move A Certain Set Of Files According To Date/time Range?

Mar 18, 2009

I'm trying to find a proper command to move a certain set of files according to date/time range. I am thinking that the command should be something like:

Code:
ls -l | grep 'date/time range' | mv /folder

View 6 Replies View Related

Software :: Command To Get History Command Lines And Time In SUSE?

Jun 23, 2009

I have to trace back what command and when it is used for the last 3 months. It is quite urgent as I have trouble with the system configuration.

View 5 Replies View Related

General :: Free Command Line Tool Time Which Can Be Used To Find Timing Statistics For Various Commands?

Jun 24, 2011

I'd like to measure network latency for SNMP GET request. There is a free command line tool time which can be used to find timing statistics for various commands. For example it can be used with snmpget in the following way:$ time snmpget -v 2c -c public 192.168.1.3 .1.3.6.1.2.1.2.2.1.10.2IF-MIB::ifInOctets.2 = Counter32: 112857973real 0m0.162suser 0m0.069ssys 0m0.005sAccording to the manual, statistics conists of:

the elapsed real time between
invocation and termination,
the user CPU time (the sum of the

[code]....

View 3 Replies View Related

General :: Kernel Mode Setting Sets Wrong Resolution On Console/Intel GL40/several Kernels

Feb 21, 2010

Basically, About 50% of the time, the system boots and sets the console resolution to something strange, and the console renders in a small box in the top-left hand corner of my screen. This causes problems not only with the display of the console, but with the display of X as well.

I have an Intel GL40 chipset on this laptop, with an integrated GMA4500 GPU. I am using the latest stable Intel video drivers (2.10.0-1), and have tried using the git drivers. In addition, the problem has been occuring since December, when I install Arch linux on this machine, I have just now had the time to address it. So basically, the issue has persisted with all driver versions since mid-December to the latest releases.

In addition, I have tried using several kernels, including:

But the problem persists with each.

I wish I could give you relevant diagnostic information for this issue, but if I had any idea where to start...

I will gladly post any information necessary. I was going to post a copy of everything.log for a successful and unsuccesful boot, but unfortunately they put me over the posing limit by about 100,000 characters each.

I guess, on second thought, that my Intel video driver really wouldn't have anything to do with my console, now would they?

View 9 Replies View Related

General :: Intel CPU Microcode Update Fails Everytime / Fix It?

Apr 2, 2011

I have a few XenServer VMs all running CentOS 5.5. Some are 32-bit and others are 64-bit.

Every time they boot, the following message appears:

Applying Intel CPU microcode update: [FAILED]

Does anyone know why this is happening and how I can fix it?

View 1 Replies View Related

General :: Everytime Launch A Program Cant Use The Console Anymore

Dec 5, 2010

My problem is, that everytime i launch a program, like a virtualbox image, the console launch it, but i cant use it anymore.

I use ssh with putty remotely, and the problem is that if i close putty console, the program closes too...

Can i do something to run the program independently of the console? or keep running after i close?

How i can i keep track of it when i open console again?

View 11 Replies View Related

Server :: When Executed Last Command Its Showing System Ip Logged In Time And Logged Out Time The Output?

Feb 27, 2011

logging in a server through putty in the same network when i executed last command its showing system ip logged in time and logged out time the output as followsthis is my system
oot pts1 xx.xx.xx day month date time in time out timeand similarly am geeting other than this likeroot :0day month date time still logged in this is from more than 3 days its logged in

View 2 Replies View Related

General :: Manually Unmount Partitions Everytime Shutdown - Restart / Should I Do It?

Mar 21, 2010

I edited fstab file and added my hdd partitions to it. just wondering should i manually unmount my partitions everytime i shutdown or restart.

View 4 Replies View Related

General :: Remove Apache And It Worked But Everytime It`s Installed It Comes With The Old Settings

Apr 30, 2010

I wanted to remove apache and it worked but everytime it`s installed it comes with the old settings...and I want the default ones..I don`t know to manage an apache server but i`m learning! I tried these commands and not of then didn`t had any effect:

apt-get remove apache2
aptitude remove apache2
rm -rf /etc/apache2 , rm -rf /var/www
dpkg -P apache2
and of course ... --purge remove apache2

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved