General :: Calculate The Hours Usage Per Day Over A Certain Period?

Dec 13, 2010

Between the dates 21-June-2007 to 12-December-2010 there are 1270 days. If the total cumulative time a hard drive has been active is 344 days (found this via Disk Utility in Ubuntu 10.10) since it was bought 1270 days ago. What is the average usage hours per day?

View 2 Replies


ADVERTISEMENT

General :: Calculate Time Period In Scripting

Mar 16, 2011

Now i am writting one bash script. in that my requirement is i need to create one directory and that the directory details to be stored in one file Ex. date/time and all in one file. after that i need to delete the folder automatically exactly after 3months. between these time period in 2month itself i need to send one mail to admin "regarding this still one month only more to delete the folder" . is it possible to do like that date calculation in script.

View 10 Replies View Related

General :: CPU/RAM Usage Log Over A Period Of Time To File On CentOS

Jun 7, 2010

Im looking for an app pr line of code that could let me observe a process, save the info in a number of variable and then put the gathered info on a file.

Ive been trying with variations of top but no luck. I am running several CentOS virtual servers, VM is 2gb ram 2 processor.

Maybe a script that works over a specified amount of time while writing lines with the info on a text file so at the end i can have a sort of table with the data.

The thing is Im going to stress test the server and I would like to have the data to make some statistics.

View 2 Replies View Related

Software :: Flash Audio Frozen In A Loop In Firefox On Debian After Some Hours Of Usage?

Aug 10, 2010

my system:
Debian v.5.0.5,
architecture: i686,
Firefox 3.6.3 (but had the same problem with older versions of Firefox),
Flash: Shockwave Flash 10.0 r32

After a fresh X start, Flash works without any problems for a day or so but then at some point the audio starts to freeze in a loop (sounds like an old record with a scratch) and the video also freezes up. This happens while listening to last.fm, but the same problem affects other flash videos on other sites but apparently only if they have an audio track, so I think it is mostly an audio buffer problem.Restarting Firefox doesn't seem to help but when I log out and start a new session (rebooting is not necessary) it is fine again.Does anybody else have that problem? I couldn't find anything so far and I don't have rootaccess to this machine, so I'm a bit restricted.Does anybody know which files flash writes to for buffering stuff? Maybe I can just delete a file that has been somehow corrupted instead of restarting? It's quite annoying if you have lots of applications running

View 5 Replies View Related

General :: Status Of Memory Usage And Disk Usage Using Sigar In Windows And Ubuntu

Mar 15, 2010

I was trying to get the status of memory usage and disk usage using sigar in windows and ubuntu. done this in windows by just copying the sigar library into jdk library. But i was unable to do so in ubuntu. I've copied the library to java-6-sun library but still can't run the program.

View 14 Replies View Related

General :: Unix - Monitor Average CPU Usage And RAM Usage On One Process System?

Nov 15, 2010

Is there any way to monitor one process' CPU usage and RAM usage over time on Linux? I am trying to change to a cheaper VPS and need to work out what level of CPU and RAM I need!

View 2 Replies View Related

General :: Cron - Schedule A Service To Run In A Time Period

Mar 2, 2010

i want a service to be start at 8:00 and be ended in 14:00 automatically i already do this manualy by:

/etc/init.d/myservice.sh start
/etc/init.d/myservice.sh stop

i think it should be related to cron jobs.

View 1 Replies View Related

General :: Search Date Period In Access Log Using Grep ?

Feb 19, 2010

I have a three input day,month and year. Currently i am using the following script to take the data.

Any grep advanced technique to avoid for loop?

View 2 Replies View Related

Fedora X86/64bit :: 24 Hours Format To 12 Hours Format Lovelock?

Jul 27, 2011

I have a problem,I want to change the hour format from 24 hours to 12 hours, I cant find the way to do this,

View 14 Replies View Related

General :: How To Calculate Video Resolutions

Jun 2, 2011

I am familiar with common video resolutions like 320x240, 640x480 and 720x480. Sometimes I want to use other video resolutions when encoding videos. Is there a formula to calculate the unknown value for the heightxwidth if one value is supplied? For example, if I want my video to be 480xWidth, what value should Width be to get proper aspect.

View 2 Replies View Related

General :: Looping Through Csv File To Calculate Avg/min/max?

Sep 1, 2010

I have a csv file (id, loc, timestamp, impressions) that I need to derive some low-level calculations from. Im ok with basic sort and grep operations, but this one is challenging my feeble scripting skills (normally I�d throw it into a spreadsheet, but in this case Id like to ultimately create a script that I could automate). Ive already used cat/sort to order the csv file first on location and then timestamp so it looks like this:

Abt001, AA, 2009-01-01 10:51:00, 231
Cup002, AA, 2009-01-01 10:54:00, 3
Saf001, AB, 2009-01-01 10:51:00, 25

[code]....

What Id like to do is output to file a record of the total, min, and max number of impressions for each location. , e.g.

AA6504 3231
AB252525
AC37925109
ZZ35512341

how to do this and Im kind of stuck on how to approach it I think the combined steps of looping through the locations along with the min/max/sum calculations are throwing me. Eventually Id also like to do additional calculations like average, ect. but I think I can figure that out on my own if I can just get this part down.

View 10 Replies View Related

General :: Calculate Local Time In Seconds?

Sep 3, 2010

I`m looking to calculate my Local Time in seconds from APOC - 1970.I found only - date +%s -> that display the UTC and not my Local Time.

View 3 Replies View Related

General :: Calculate Duration In Seconds In Bash ?

Nov 15, 2010

I would like to subtract the end time with a start time in bash. How can I do it?

Here's a script of example of what I want:

View 8 Replies View Related

General :: Calculate Total Memory Consumed By User?

Sep 20, 2010

is there a way to calculate the total memory consumed by user ?

View 12 Replies View Related

General :: Calculate Usable Bytes On A Disk Partition?

Mar 10, 2010

How do you calculate the number of usable bytes on a disk partition? When I do an fdisk -l I get this:

Disk /dev/md0: 192.0 GB, 192069500928 bytes
2 heads, 4 sectors/track, 46891968 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

[code]...

View 7 Replies View Related

General :: Mapping With Series From Master File And Calculate Count?

Sep 7, 2010

My shell script is calculating the count of each shortcode series wise whose sample output is as follows:

Code:

56882
9124 1
9172 1
9173 4

[code]....

View 1 Replies View Related

General :: Calculate Minimum Ext3 Partition Size For Certain Amount Of Data?

Aug 5, 2011

These following ext3 partitions contain identical data. As we can see, the larger the partition size, the more space is required for the same files:

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/loop11 3965777 561064 3199964 15% [...]
/dev/loop19 573029 543843 29186 95% [...]

[code]....

View 2 Replies View Related

General :: Incorrect Time - Looks Like It's Exactly 4 Hours Behind ?

Jul 24, 2011

A few hours ago, I ran "pacman -Syu" to update, and soon after it was finished the power went out for a few seconds, turning off my computer without properly shutting down. When I started it, the time was wrong (or maybe the time zone, since the minute is correct). It looks like it's exactly 4 hours behind (right now it's 18:53 here, but the date command says 14:53). Also, I have ntpd running, in case that matters.

View 4 Replies View Related

General :: Grep String From Logs Of Last 1 Hour On Files Of 2 Different Servers+calculate Count?

Sep 3, 2010

I am trying to grep a particular string from the files of 2 different servers without copying and calculate the total count of its occurence on both files. File structure is same on both servers and for reference as follows:

Code:

27-Aug-2010 10:04:30,601|919122874903|phtunes_app|1282243292627|NotifySmsReception|DMGenerateLogInterceptor - ExternalTransactionID:SDP-DM-26713018, TransactionStatus:Requested
27-Aug-2010

[code]....

View 6 Replies View Related

General :: To Spawn A Task That Runs For Hours?

Nov 2, 2010

I have been doing this for quite sometime now, yet lately I wonder if this is what everybody does...I have a task that will run for hours. In order to not to interrupt that task when I logoff for the day, I issued the command:

Code:
at now 'sh ~/a-long-task'
Is this what everybody else does?

View 2 Replies View Related

General :: Deleting Files Older Than 1 Hours

Sep 8, 2009

on my site now I'm using cache and need me cron script that will delete files older than 1 hour I have feature in my kloxo control panel just need me the command .

View 2 Replies View Related

General :: Gentoo System Keeps Crashing Every 6 Hours?

Jul 12, 2010

I was installing "wine" last night and since I knew it was going to take a while I closed the lid of the laptop and turned it upside down on the floor. (I always turn the laptop upside down when not using it otherwise might overheat)When I woke up this morning roughly 8 hours after I went to sleep the machine was turned off.Using the "last -x | grep shutdown | head -1" it stated that it went down at roughly 6 hours from when I went to sleep.The program I was installing got finished installing but I never set up an auto-shutdown program or anything of the sort.If this isn't a problem with linux then its a problem with my bios. If its a problem with my bios I will just have to live with it because my bios is locked. /var/log/messages says this:

Code:
alexslaptop logger: ACPI event unhandled: battery BAT1 00000080 00000001
alexslaptop shutdown[14933]: shutting down for system halt

[code]...

View 5 Replies View Related

General :: Automatically Restart A Process Every Few Hours?

Dec 30, 2010

I'm having a VPS using Ubuntu 10.4 and i would like a guide on how to restart apache2 process every few hours (a time determined by me).

View 11 Replies View Related

General :: Server Seem To Crash Every Couple Of Hours?

Sep 28, 2010

This is Plesk linux server.I am using CentOS release 5.5 (Final) OS. Server seem to crash every couple of hours. Perhaps apache has memory leak?

Sep 28 07:06:29 wed kernel: Call Trace:
Sep 28 07:06:29 wed kernel: [] out_of_memory+0x8e/0x2f5
Sep 28 07:06:29 wed kernel: [] __alloc_pages+0x245/0x2ce
Sep 28 07:06:29 wed kernel: [] __do_page_cache_readahead+0x95/0x1d9
Sep 28 07:06:29 wed kernel: [] __wait_on_bit_lock+0x5b/0x66

[Code]....

View 4 Replies View Related

General :: Sudo Rights Expired After A Few Hours Of Operation

May 4, 2011

I was observing the following behaviour:

py script:
os.mkdir(path) #all OK
operations_that_take_10hrs_to_complete()
os.mkdir(path) # permission denied

like I lost my sudo rights after some time ..

View 1 Replies View Related

General :: Speakers Mess Up After Couple Hours Of Machine Use

Feb 11, 2010

i have a problem. when i changed from xp to linux mint 8, my speakers seem to just give up on me after about 2 hours of use. the only way i can fix them is to restart the computer.

View 1 Replies View Related

General :: Desktop Ubuntu - Download Greater Than 12 Hours

Apr 17, 2011

I am totally new to unbuntu, I am trying to download ubuntu desktop but the message from IE 9 returns that "download greater than 12 hours"and that is that! my dsl connection is 6Mb and I do not know what to do.

View 4 Replies View Related

General :: Take 3 Hours For The Terminal To Respond To Lspci Command?

Jan 4, 2010

Joined the Linux community last week with a clean install of Ubuntu 9.10 and the Edubuntu overlay onto my wiped Dell Inspiron 8000 with 512MB RAM (max allowed) and nVidia GEForce2 GO video card. <<lspci: 00:00.0 Host bridge: Intel Corporation 82815 815 Chipset Host Bridge and Memory Controller Hub (rev 02)

00:01.0 PCI bridge: Intel Corporation 82815 815 Chipset AGP Bridge (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 02)
00:1f.0 ISA bridge: Intel Corporation 82801BAM ISA Bridge (LPC) (rev 02)

[code]....

View 3 Replies View Related

General :: List Files In Specific Directories Older Than 1 Day Or 24 Hours

Apr 7, 2011

I am trying to write a simple back up script in python where I try to list the files that are 24 hours old in specific directories that I would choose.I read the manual of find and used

find . -mtime 1 > log.dat

to get the list of files in the log.dat however I also get the path information in that list as such

./hpc06MatlabCodes/2011/Apr/3dBoxModel
./hpc06MatlabCodes/2011/Apr/3dBoxModel/vfluidIrca10.dat
./hpc06MatlabCodes/2011/Apr/3dBoxModel/vLRecoveredSystem.mat

is there a way to exclude the directories and only get the files list.

View 2 Replies View Related

General :: Grub Loading Wait Error 21 - System This Way For Hours

May 16, 2010

Grub loading wait error 21 - system this way for hours

View 4 Replies View Related







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