General :: Calculation Of Working Time Based On System Uptime
Jul 28, 2010
I know several tools that allow tracking time spend on different tasks / projects.Is there any existing tool for very very simplified work-time-tracking.I am an employee, come to the office, switch on my laptop directly. I have mostly around 1 hr lunchtime, but sometimes less, sometimes more.At around 18:00 I want to type one command in the console (or simple GUI would also be okay of course) that tells me:"1 hour overworked. Go home now! (came at 8:00, 1 hour standard lunch-break)."
View 1 Replies
ADVERTISEMENT
Mar 28, 2011
I know that uptime prints the time a machine has been up and running, but is there an easier (reliable) way to get the date of the start up than counting down from this output?I tried looking around /proc, but didn't find anything of relevance. There's also a line like this on my dmesg: [ 0.673492] rtc_cmos rtc_cmos: setting system clock to 2011-03-14 14:26:52 UTC (1300112812), but I'm wondering if this method is distribution and kernel version agnostic.
View 5 Replies
View Related
May 11, 2011
My Linux system was last rebooted few hours ago. But it seems little confusing for me to figure out the exact reason behind it. I guess following command should justify what i meant to say.
Code:
# date
Wed May 11 13:22:49 IST 2011
# last | grep "May 10"
reboot system boot 2.6.18-194.el5 Tue May 10 17:35 (19:46)
root pts/1 XXXX Tue May 10 17:24 - 18:18 (00:53)
[Code]...
My question is Why the uptime is saying that the system is up since last 47 min.It should be more than 1 day if i m not wrong.
View 2 Replies
View Related
Sep 15, 2010
How can init process uptime be longer than the uptime of whole system?
Code:
martin@server:~> ps -p 1 -o pid,cmd,bsdtime,start
PID CMD TIME STARTED
1 init [3] 20:50 Mar 05
martin@server:~> uptime
2:23pm up 559 days 1:42, 10 users, load average: 0.18, 0.28, 0.34
martin@server:~>
View 1 Replies
View Related
Feb 22, 2010
language: cOs: ubuntu 9.10 want a c or c++ program that gives the system uptime in YYYY: MM: DD HH : MM: SS format.eally it is head ditching..This is not home work or assisgnment..
View 10 Replies
View Related
May 1, 2010
i want to deny certain users based on time to login to my machine i am using CentOs 5.0 any sugestions?
View 2 Replies
View Related
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
Aug 27, 2010
I am having problems with the useradd command. When I call "useradd someuser" the program starts and never finish. When I give the UID option (useradd -u ) sometimes it works properly, but with some UID's that aren't in /etc/passwd it shows a message saying that the uid is not unique. I checked out /var/log/auth.log and nothing about the command is being logged. It seems that the command is not calculating the new UID prperly.It's running on a Debian Linux 2.6.26-2-686 i686 GNU/Linux
View 6 Replies
View Related
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
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
May 31, 2011
i am working on a model based on cpu load / cpu usages. where i need the instant cpu usage/cpu load, but i can able to find the cpu load average for last 1 , 5 or 15 minutes. Is there any command or any software by which i can able to find out that?
View 2 Replies
View Related
Dec 3, 2010
I want to know if there is a way to know the uptime for a server after a reboot process, I need that information for a statistic, but I forgot to take the uptime before reboot the server, so I am looking for that information after the server is power on.
View 1 Replies
View Related
Apr 3, 2011
My hard drive all of a sudden starts to read and write all on its own for around 15 seconds at a time while at idle or while I am just browsing the net. At first I thought it was from cron running but I have that disabled.
View 3 Replies
View Related
Oct 8, 2009
Issue: I want to backup my system and be able to restore if/when my system crashes.
Setup: Thinkpad T61 running Sidux KDE3.
I want to back up the system files more than personal data. What I have found is that when I apt-get dist-upgrade the upgrade performs without error, but when I restart and login I get a black screen with a mouse. From the 'black screen' I can open yakuake with F12 and then launch applications and such from the command line. The point of this more troubleshooting right now. Later is so I won't need to do a complete reinstall.
What backup prog have you used that will backup the complete system and is easy to restore?
View 1 Replies
View Related
Feb 11, 2011
My application is an integration of all the open source components with customized heavily including OS. I would need to know how to generate license keys for my application.
Does any one have any clue?
View 6 Replies
View Related
Mar 14, 2011
Kindly read the complete question I know this question has been asked repeatedly
Is there a way to Transfer files between Linux based OS & Windows OS Without using SCP, FTP, TFTP, HTTP, USB, Netcat or samba share?
View 8 Replies
View Related
Sep 6, 2009
I have a virtual machine with SUSE Linux Entperise 10 SP2 (I586) installed. However, the default setting is using command line based interface.
Is it possible to change it to be GNOME or KDE based interface ?
View 1 Replies
View Related
Mar 25, 2016
I'm trying to get a bash script to do different things based on the time of day, but at least once a day the test fails:
Code: Select allNOW=$(date +%k%M)
if [[ "$NOW" -ge 1000 ]] && [[ "$NOW" -le 2200 ]];then
alarm lon
else
alarm loff
fi
This is the error, and line 59 is the second quoted above:
Code: Select all/home/electrolux/bin/ts.sh: line 59: [[: 059: value too great for base (error token is "059")
The script is run every minute, and this error only occurs at 12:59AM, or 00:59.
I presume the problem is either $NOW is being set to 059, or the testing is seeing 0059 as 059. I think the latter, because for the rest of midnight 'til 00:58 the script works. And with some Googling it seems that the leading 0 is making test treat the number as octal... is there a way to tell it it is decimal?
Perhaps this is just some poor time-testing code? Looking at it I don't think it will cope with set time period that crosses midnight..... there's probably just a command to do what I want, isn't there? I know I could have two different scripts cron'd for the different time periods, but it would be much more preferable to be just the one.
View 4 Replies
View Related
Jun 7, 2010
I notice that on DistroWatch, the descriptions include "debian based", "arch based", etc. For the newbie, is there any practical difference between the different bases, or is it a Coke vs Pepsi type question?
Is a distro based on Debian say, easier for a newbie to learn or work with than say one that is FreeBSD based?
View 9 Replies
View Related
Dec 11, 2010
I have installed conky from soft manager after knowing its power today. I'm using 10.10. I want to design a conky script which monitor the network traffic ie total upload + download on monthly basis as I'm on limited internet plan which is too common here. I have free usage from 2am to 8am in the morning and want to exclude this traffic. So I'm in search of a custom script which can accomplish this.
View 1 Replies
View Related
Jul 7, 2010
Code...
But I want to get the files in order which they created like file, file1 and file2
Any way to obtain this?
View 6 Replies
View Related
Jan 20, 2010
Looking for console based calendar / time manager (or backend)? Well is there a good one to be known? Maybe else than 'when'? Joe Barr has written a nice intro to the program in his column at linux. [URL]. Is there some backend and frontend that could be used? Or alternatively, could it be possible to have them on an Kerberos/Ldap system or exchange server? What are the best and multiplatform single cal database possibility?
View 1 Replies
View Related
Feb 6, 2010
I am trying to configure my Linux router to restrict Internet access for one computer on my LAN. It needs to be restrictive based on the time of day and the days of the week. I am using the MAC address of the computer to single out the one computer that needs to be blocked. However, this is my first attempt at making any rules with iptables, and I am not sure if I am doing this right. If some one can take a look at this I would greatly appreciate it. This is what I have done so far.
Here is my thinking. Create a new target. Check the MAC address, if it is NOT the offending computer return to the default chain. If it is the offending computer check that we are between the allowed hours and dates and ACCEPT. If we are not within the time/date range then drop the packet.
Code:
Here I am trying to route all packets regardless of the computer on the LAN into the blocked_access chain for checking.
Code:
Is it a good idea to route all traffic through the blocked_access chain? I do run other servers that are accessible from the Internet, so I am not sure how this setup will affect that. I also use shorewall on the router to setup iptables for me. How would I integrate this with shorewall?
I am using squid to block access when he is using the web browser. However, he is still able to play games(World of Warcraft) and the like.
I am using Debian sid, iptable(1.4.6), shorewall(4.4.6), kernel 2.6.32-trunk-686.
View 7 Replies
View Related
Mar 14, 2011
Im new to this Cent OS as well as Unix based Operating Systems. Please help me with the below requirement.My Company is a Serach based data collector from different websites like Google, Yahoo & many more..Collecting the data from the search engines is a issue for right now.. As many search engines are blocking us to search and retrive the date after some time.. Taking Google as example : Google Blocks my IP after every 30 mins of retriving.. Application is a Windows based & using Windows 2003 as the Server.. Would like to give a Dynamic IP to the Windows Server via 1st Ethernet Card & enable the 2nd Ethernet for the Internet..Eg : eth 0 = 192.168.1.1eth 1 = x.x.x.x (Public IP)I have check with few of my friends who told me to get Linux or Cent OS installed to do a interface disable after given time & enable a secondary device or virtual interface the next couple of seconds... Like eg : eth 1 = x.x.x.1 eth 2 = x.x.x.2 eth 3 = x.x.x.3 so on.. Would like the eth 1 to be down after 60 mins & eth 2 o be up & again after 60 mins of up time eth 2 down & eth 3 up.
View 6 Replies
View Related
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
Apr 5, 2010
When you use an IDE and it asks you if you want frame based or dialog based, what is the difference?
View 1 Replies
View Related
Feb 2, 2011
what distro should i use, rpm based or debian based?
View 2 Replies
View Related
Jan 14, 2010
I dont want to allow the user winny on saturday and sundays. I added the following line in the /etc/security/time.conf file.
login;*;winny;!SaSu0000-2400
Then i added the following line in the /etc/pam.d/login file.
account required pam_time.so
this is the first line of that login file. But if i tried to login with the username winny it allows me to get log in. Is anything has to be change?
View 14 Replies
View Related
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
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