General :: Make App Detect When System Time Has Changed?

Jun 9, 2011

I need to write a small application which needs to detect if the system time is changed by an another application/user and perform some action as soon as it is detected (maybe log the data that time has changed, along with info about which application/user changed it).

How can this be achieved?

I have good programming experiences in shell script, c and beginner level in python.
I don't need to know when it was changed, just need to know who/what changed it.
The system uses NTP to sync the time, but it is also possible for anyone/any application to change the time(for eg: using the simple "date" command as well).

View 2 Replies


ADVERTISEMENT

Server :: System Time Cannot Be Changed

May 1, 2010

On installation of my OEL (Oracle Enterprise Linux), I've made a mistake, and set the date and time wrong. It's pointing to a date far in the future. So I change the date (and time), all looks OK. But when I boot, all is back to the same date (in 2015). I'm running this OS in VMware, I don't know if this issue relates to VM or not.

View 8 Replies View Related

Fedora Servers :: Check In Dates Getting Changed / Updated To System Time

Jun 21, 2011

I am using the default CVS available in Fedora 9. I initiated the CVS server by
cvs -d /usr/local/cvsproj init
To check-in and check-out the following exports commands are used
export CVS_RSH=ssh
export CVSROOT=:ext:swathi@SERVER:/usr/local/cvsproj

I shall explain problem by taking an example. A project was checked in long before (for example the checkin date is 25 Feb 2010). And today (i.e. 21 June 2011) I checked out the project from the repository. After checkout, the date of the project in the repository is changed from 25 Feb 2010 to 21 June 2011. This date is set to all the subfolders in that project. But the files in the project retains the checking date i.e. 25 Feb 2010. Why the check-in dates are getting updated/changed to the system time after doing check-out.

View 2 Replies View Related

General :: Computer Time Difference At Windows / Make The Time The Same?

Apr 13, 2011

My computer has different time when booting to linux or Windows.How to make the time the same?My computer time is 10:57pm Apr 14 when booting to linux.My computer time is 2:57am Apr 14 when booting to Windows Vista Home Premimum SP2.Both OS are set to the same time zone (GMT-5. Eastern Time US & Canada).

View 5 Replies View Related

Ubuntu :: Need To Make System Stop Updating BIOS Clock To UTC Time

Jan 22, 2011

I have Ubuntu 10.04.1 32bit installed on my flash drive so wherever I go I can have my own mini personal computer, but one problem I'm having is every computer it is run on the next time it's rebooted to the OS on the hard drive it has UTC time instead of the actual time for the timezone you're in that Windows uses. So is their a way I can make Ubuntu not automatically change the clock to what it wants?

View 2 Replies View Related

Ubuntu :: How To Make System Boot Faster By Removing Idle Time

Jun 14, 2011

How to make the system boot faster by removing the idle time between 5s to 10s? bootchart attached. It is Ubuntu10.04LTS by the way. One more hint, the screen black out for ~4s after "Begin: Running /scripts/init-bottom... Done." I don't know what is going on during that 4s, but my best guess is there is a way we can get rid of it.
Bootchart can be found here:

View 9 Replies View Related

General :: Ubuntu - Make Detect Sound Card?

Aug 6, 2010

I installed a sound card but when I go to System->Preferences->Sound and go to Hardware it's not showing anything at all. If I boot from the Live CD then it will show the card and it works. How can I make my Linux installation detect this card? I was thinking that I could somehow copy the necessary files from the Live CD to make this work, but maybe there's an easier way.

View 1 Replies View Related

General :: Short A Time Can Time (system Program) Measure?

Apr 15, 2010

I'm just wondering what the limits for time are. I have a program that always takes exactly 20 ms, so I assume this is the lowest it can measure, but I want to see if there's some sort of documentation of this.

View 3 Replies View Related

General :: Get The Values For The User Time And System Time For A Process?

Aug 4, 2009

get the values for the user time and system time for a process.i have tried getrusage to get values of ru_utime and ru_stimebut these don't seem to be correct

View 3 Replies View Related

General :: Using The Command Line Can Detect Wireless Card And Make It Work Under SUSE Enterprise Desktop?

Jan 26, 2010

How, using the command line can I detect my wireless card and make it work under SUSE Enterprise Desktop? The wireless card works in Win XP.

View 8 Replies View Related

General :: System Won't Detect My Onboard LAN Card / Fix It?

Jun 8, 2010

I have just install Redhat Enterprise Linux5, 2.6 kernel,Foxconn motherboard,model 45GMX-V but Linux did not detect the Onboard LAN card.Although when i use winxp it detects the card as RTL8139/810x.

View 4 Replies View Related

General :: How To Detect Process Causing System Load

May 2, 2011

Whenever someone copies a data Our system get very slow. Load average of system starts increasing. How would i find which process is causing the same. I have tried following top 10 CPU utilizing process command but it didn't help much.

Code:

ps -auxf | sort -nr -k 3 | head -10

My distribution detail.

Code:

# lsb_release -a
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: EnterpriseEnterpriseServer

[code]....

View 4 Replies View Related

Software :: Time Frequently Changed In Fedora 12?

Jun 27, 2010

my system time is getting changed automatically(4 hours delay) even if i set the correct time zone. hw can i resolve it?

View 8 Replies View Related

Ubuntu :: Time Changed From GMT To BST - Wake On Alarm Fails / Fix This?

Mar 30, 2011

I'm running Ubuntu Hardy 8.04 and in the UK we changed from GMT to BST last Sunday (27th March)
On GMT I was waking on LAN at 23:30, all was working fine then we changed to BST. What I usually do is leave the BIOS clock on GMT and change the Wake on Alarm to 22:30. I did this, shut down Ubuntu fine, but its not waking up at all at 22:30, or any other time I set the WOA to. I had this problem a few years ago on an old ASrock mobo and cant remember how I sorted it - maybe by blanking the bios, cant remember.

View 4 Replies View Related

Security :: Files Sizes And Checksums Changed, But Not Time Stamps?

Nov 24, 2010

For the second time in a week, I have set up an unmanaged CentOS 5.5 Storm Server at StormOnDemand, only to discover a ton of unauthorized changes to binaries (updated file checksums and sizes) on the server shortly thereafter.The time stamps do NOT change.If the time stamps did change, I would be hunting down ahat was doing some auto-updates. But the time stamps are not changing.This leads me to believe that either these servers are suffering from:1. A virus or hacker is compromising the box.2. system corruption.3. Something else? To eliminate the possibility of number 1, I toasted the first server and started over with a new server and enabled their firewall from the start to only allow access for two IPs via SSH... my IP and my biz partner's.

Then, one of the first things we installed was a system we created that maintains a snapshot of most directories on the system so that it can be used to watch the live directories for changes. At 4:07am (server time) this morning, we received notice from this system that a massive number of files had changed in these directories. Again, no file time stamps changed.So, my question is this... is there any legitimate reason in a fairly standard CentOS 5.5 install that would cause so many files to change?

View 2 Replies View Related

General :: Make Second Program Running With CPU Time Limit 2 Seconds?

May 16, 2011

Linux bash inline command to execute a program and limit the resource.As I know, to limit the resource I can use ulimit command.But, the problem is when I set the CPU time limit 1 second, and then I want to execute another program with CPU limit 2s, the ulimit command return an error like this: bash: ulimit: CPU time: cannot modify limit: Operation not permitted and absolutely my program killed in 1 second.So, How can I make the second program running with the CPU time limit 2 seconds?

View 3 Replies View Related

Programming :: Detect Current OS In Compile Time?

Dec 8, 2010

Code:

#if defined(WIN32) || defined(WIN64)
#define WINDOWS
#endif

[code]....

what is the directive thats required to detect a linux system? i want to to be able to detect which platform im compiling on automatically.

View 5 Replies View Related

General :: Make Dmesg Post Output To Tty12 In Real Time

Apr 3, 2011

Terminal with real time dmesg output I want to use tty12 for system messages. Is there a way to mirror all kernel messages to there?

View 2 Replies View Related

General :: Make Mouse Wheel Scroll ONE Line At A Time In Emacs?

Jun 16, 2010

My mouse wheel scrolls 3 lines at a time !

I tried this, it didn't succeed.

View 14 Replies View Related

Red Hat / Fedora :: RHEL 5 Dual Networking - Ethx (0,1) Devices Are Brought Up Be Changed At Boot Time

Jun 3, 2010

I'm having an issue with dual networking on RHEL 5. My initial question is can the order the ethx (0,1) devices are brought up be changed at boot time, so I could bring up eth1 before eth0?

Some background: eth0 is DHCP'd and using DNS, basically this is my primary network. eth1 is an isolated subnet, with a manually configured IP which has no connection to eth0 or the outside world. When I bring up networking it first brings up eth0 and then eth1, what happens is eth1 becomes the 'primary' network of the host and I lose my connection to DNS/NFS/NIS and the outside world.

If I login and manually bring up eth1 first, then eth0 everyone is happy and connections work. So, I'm looking for a solution to either bring up eth1 before eth0 or somehow make eth0 my primary IP and not have it be clobbered by eth1.

View 2 Replies View Related

Ubuntu :: Make Emacs Reload A File When Changed On Disk?

Apr 21, 2011

I've noticed that emacs does not notice when an open file is changed on disk (unlike ,say, geany). Is there any way of making it watch for changes of files on disk?

View 1 Replies View Related

General :: How To Set System Time In 12/24 Hr

Sep 19, 2010

When I use the `date' command on RHEL5, I can get the time shown in 24 hr format. I wonder if the time can be shown in 12 hr format. But I don't want to use the `date +FORMAT' to do that, neither `alias date='date +FORMAT''. I just want a simple `date' to show time in 12hr format.Is there any configuration file about the 12/24 hr format? Is the format related to the value of the environment variable 'TIMEFORMAT'? I can't find its default value by 'set | grep -i timeformat'.How can I know what the current format is? I mean, when I use `date', I can get "Sun Sep 19 13:22:50 CST 2010", which seems like 24hr format; but when I use `hwclock', I can get "Sun 19 Sep 2010 01:23:05 PM CST -0.174299 seconds", which seems like 12hr format.

View 2 Replies View Related

Ubuntu :: Detect Removable Devices Attached At Real Time Using C Program

Mar 21, 2011

I want to devolep one "C/C++" program that will work as a daemon. My daemon will be running all the time, and whenever anybody attaches removable devices to machine on which my daemon is running, My daemon should catch that event and also should show me where that device has been mounted.

View 1 Replies View Related

Fedora :: 11 Boot Time / System Hangs For A Very Long Time On Starting Udev?

Sep 25, 2009

When booting Fedora 11, my system hangs for a very long time on starting udev. Sometimes I get an I/O error. However, my hardware is fine. I do eventually get in to the system.

View 7 Replies View Related

Fedora Installation :: Set The Time In The System Tray To The Standard AM/PM Setting Instead Of Military Time?

Jan 29, 2010

Just making one last tweak with my fresh install of F12KDE. I need to . How do I do this

View 2 Replies View Related

Ubuntu Servers :: System Time Runs Slow Hareware Time Run Right?

Apr 11, 2011

I am running my Ubuntu 32 bit server on top of Windows 7 64 bit with VirualBox. It's a 2 core Atom. It's been working good for about half a year. But the last about 6 weeks the system time only in Ubuntu is going slow. About -8 per 24 hours! I can only guess because I have more things running in my Windows 7 and Ubuntu.

I can set it right by coping the hareware time to system time with this command:

Code:
hwclock --hctosys

I want to run a crontab to have that command run every minute. But it don't seem to run.

[Code]...

View 9 Replies View Related

General :: How To Get System Idle Time

Apr 5, 2010

I want to get the system idle time till a mouse move or a key press. How is it possible to get it from a char terminal running through ssh/telnet as well as a from an X-terminal session?

View 1 Replies View Related

Ubuntu :: Grub2 Does Not Detect Windows XP On U9.10 / Make It Possible?

Apr 2, 2010

I installed Ubuntu 9.10 yesterday on my computer. I had Windows XP and Windows 7 (I deleted the Windows 7 partition and installed Ubuntu 9.10). However, after installing Ubuntu, I couldn't access the grub boot menu. So I googled, and I found out how to make the menu show up again. That was okay. But Windows XP didn't show up. So I googled a bit more, searched the forums, and I added the following entry to my 40_custom file code...

As far as I know, that should work. The uuid I entered there is the one that gparted told me was the uuid of the partition. However, this isn't working. I get a disk read error when I try to boot my Windows XP.

According to my gparted, my Windows XP drive is inside an extended partition? I wonder if that has any influence on why I'm getting the disk read error, or anything. It's either that, or my 40_custom entry is wrong. I've been trying to sort this out for a while now, and I'm afraid I'm not getting anywhere with it.

View 3 Replies View Related

Programming :: Make Detect Plugged Number Of NIC's On A PC?

Jun 24, 2010

I am working on debian based OS and my query is,how to make detect the Number of NIC's plugged on a PC.
I describe it: Exact requirement would, assume, If I plug 3 NIC's for a PC,one for Internal Network,one for External Network and Other remaining one for DMZ,so I need to make an application(Firewall Kind)in such a way that,once my PC is started,it should detect how many NIC's are plugged and Whats their role played(As Mentioned above)..?
I hope u guys got a basic idea on what and how it it can be implemented..
I request to send some clues,or some related URL's/Tutorials or which part of the Linux File System needs to be edited(/etc or/proc),etc.

View 2 Replies View Related

Programming :: Make Awk Detect Lines Starting With A Dot?

May 15, 2011

I tried, of course:

Code:

awk '/^./ {print}' FILE.TXT

That does not work, I just get an empty output, even if FILE.TXT contains lines which fit the desired regexp I've searched but did not found my way. I'd like to do it with awk, as I want my program to rely only on awk, nothing else such as sed, grep, etc.

View 12 Replies View Related







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