Ubuntu :: Method Required To Find Out Number Of Days Between 2 Dates?

Dec 15, 2010

Can someone show me a simple method to find out number of days between 2 dates?

Example: How would I find the number of days between 25-12-2003 to 25-12-2010? Could someone write a line of code that takes in the two dates and outputs the number of days? Or is there a program that can do this?

I know of websites that do this but I'd also like an offline method.

View 9 Replies


ADVERTISEMENT

General :: Offline Method Required To Find Out Number Of Days Since A Certain Date?

Dec 13, 2010

What offline method is there of finding out days since a certain date. Example: How would someone find the number of days from 1-Jan-2003 to 7-Dec-2010? Could someone write a script that takes in the 2 dates and output the number of days?

View 5 Replies View Related

Ubuntu :: Show Number Of Days Since January 1 On Orage

Jan 20, 2010

I'm using the XFCE desktop and the orage clock applet.

Is there any way I can display the number of days elapsed since 1st of January of the current year?

Can't seem to fine an strftime function for it.

View 7 Replies View Related

Programming :: Looping Throghu Input Files With Different Number Of Days?

Nov 3, 2010

I want to itemize addition for each type of transactions. The example below is for 3 days,10/13/2010, 10/14/2010, & 10/15/2010.

PROD =89.25+89.25+104.47= 282.97
TAX =9.37+9.37+10.37 = 29.71
ETAX = 1+1+1 = 3

[code]...

View 8 Replies View Related

General :: Find In Between Particular Dates

Oct 29, 2010

find / -newer -10 mtime +30.i want to check only those files which are modified yesterday.

View 1 Replies View Related

Red Hat / Fedora :: Any Method To Get Info About Number Of Hard Disks

Apr 25, 2009

Any command to get number of hard disks in linux. I have used fdisk -l and df -h. but is there any other sure shot method of knowing this.

View 3 Replies View Related

Programming :: Perl: Turning A Seconds-since-the-epoch Number Into "X Days Ago" Or Similar?

Aug 26, 2010

Is there a perl module that will let me turn numbers into human readable measures of time? For example, 1280513294 would be "26 days ago". If so, what's its name?

View 2 Replies View Related

General :: Can't Find Last 3 Days Report?

Apr 6, 2010

I am using awstats for my website report . but last 3 days i am not using awstats . now i check awstats,, when i give updatenow then it only shows todays report , we cant find last 3 days report.

View 1 Replies View Related

General :: Find Command With -mtime +15 Or -15 Days?

Feb 2, 2011

I am writing a bash script which includes the find (and rm command with exec) command the options -mtime -15 or +15 so that files older 15 days must be deleted from the home directory. I think that -mtime +15 should be ok, but in which case does the option -mtime -15 really come in handy?? go back 15 days until today's date?

View 1 Replies View Related

General :: Command To Find All Of The Files Which Have Been Accessed Within The Last 30 Days?

May 14, 2010

Command to find all of the files which have been accessed within the last 30 days?

View 1 Replies View Related

Ubuntu :: Find A Different Method To Install Directly Into 9.1?

Apr 5, 2010

first post and is a simple question for some on here. If I install a game using wine , will it/does it have any deteramental effect in it's running speed and stuff ie will it be using the wine enviroment to run the game whilst playing it?. Or should I find a different method to install it directly into ubuntu 9.1?

View 8 Replies View Related

Red Hat :: Rpm Install Can't Find Required Libclntsh

Apr 6, 2010

I'm trying to install a custom-compiled version of PHP 5.2.12 on a RHEL 5 server. Since I'd like to do this repeatedly on other servers, I have built custom PHP RPMs that can be deployed to other machines. (I edited the spec file to include all the relevant configure flags when compiling the PHP packages.) The compilation succeeds without error, and all the RPMs are built correctly.

And yet, even though it is there, and ldconfig says it's there, rpm isn't finding it! I'm at a loss to understand why. Just to see what would happen, I tried copying libclntsh.so.10.1 to /usr/lib64. rpm can't find it there either! So what is it about this shared library file that is wrong?

View 3 Replies View Related

General :: Method To Find Time For Accessing A Block From Disk?

Nov 23, 2010

Is there any way to find the time required for accessing a block
from disk?

View 1 Replies View Related

Fedora :: Cannot Find Required File Libvlc-dev

Aug 14, 2011

Trying to install Freetuxtv and cannot find required file libvlc-dev

View 3 Replies View Related

Ubuntu :: WARNING: Unable To Find Provider 'mutter' Of Required Component 'windowmanager'

Apr 6, 2011

after logging into my ubuntu 10.10 netbook edition, I see that my gnome desktop just hangs on the background desktop screen. when i check my .xsessions i see the following errors listed below.how to fix these error messages?

gnome-session[1583]: WARNING: Unable to find provider 'mutter' of required component 'windowmanager'
gnome-session[1583]: WARNING: Unable to find provider '''' of required component 'panel'
GNOME_KEYRING_CONTROL=/tmp/keyring-ObEeS8

[code]....

View 2 Replies View Related

OpenSUSE :: Install Boxee / Error: Could Not Find A Required Library

Feb 10, 2011

I am trying desperatly to install boxee onto my pc Boxee - Watch Movies, TV Shows and clips from the Internet on your TV.without success.I have downloaded the source code from the site and have ran

./bootstrap
./configure

The ./configure last few lines =
checking for boost/shared_ptr.hpp... yes
checking for main in -lGL... no
configure: error: Could not find a required library. Please see the README for your platform.

I'm not sure what this lGL is referring to. The readme states that I need the below to run the configure, though that doesn't say lGL either?

Build-Depends: debhelper (>= 7.0.50), quilt, python-support, cmake,
autotools-dev, autoconf, automake, unzip, libboost-dev,
libgl1-mesa-dev | libgl-dev, libglu-dev, libglew-dev, libmad0-dev, libjpeg-dev,
libsamplerate-dev, libogg-dev, libvorbis-dev, libfreetype6-dev,
libfontconfig-dev, libbz2-dev, libfribidi-dev, libsqlite3-dev,
code....

View 1 Replies View Related

Software :: Use Flv And Mp4 Files On Flavour Fedora But Could Not Find The Required Code Cs?

Feb 16, 2011

I want to use flv and mp4 files on Linux flavour fedora but i could not find the required code cs for that files.Plz help me to find these codecs'

View 3 Replies View Related

Slackware :: Easy Ways To Find All Of Dependencies Required For Package To Be Installed

Dec 20, 2010

Are there any quick and easy ways to find all of the dependencies required for a package to be installed, so that we dont have to spent a lot of time searching for each package or downloading them individually?

View 5 Replies View Related

Ubuntu :: Can't Find Any Process That Consume Such Large Number Of Memory

Feb 23, 2010

I used 9.04 for months and it work fine before restarting my PC. After I restarted my PC, the memory consumption takes up to 4.2 GB after login. However, I cannot find any process that consume such large number of memory.

[code]....

View 3 Replies View Related

Ubuntu :: Find And Move Commands On Large Number Of Files ?

Feb 21, 2011

We recovered a large number of files from a HD I messed up. I am attempting to move large numbers of files of a type e.g. .txt .jpg , into a folder by type to more easily sort through them.

Here are the commands I have mainly been trying with various edits:

Code:

Code:

So far the most common complaint I have gotten "missing arguments to execdir".

This is on Ubuntu 10.04

View 6 Replies View Related

General :: GRUB: How Find Partition Number - Hd0,x ?

Aug 29, 2010

I am playing with grub and i change the root using:

How can i know what's x for /dev/sda7 ?

The problem is that in Gparted view, the order is not like sda5, sda6, sda7, ...but the order is like:

So what's x for /dev/sda7 ?

View 2 Replies View Related

General :: Find Inode Of A Particular File Using Its Number?

Nov 16, 2010

Can we find the inode of a particular file using its inode number?

The reason is i want to know how many blocks are occupied by specific file.

if we consider block size of 1K.
if the file size is of 100 bytes. In such a case, when the file is
stored on disk, the file will occupy 100 bytes or 1K (since we have
choosen block size to be 1K) ?

View 6 Replies View Related

General :: Find Number Of Files In A Directory?

Feb 22, 2010

i need to know how to find number of files in a directory? is there any system calls in fedora 12.And i need to know how to perform a operation if the that count increases by one?

View 14 Replies View Related

General :: Find A Ip Address Having Maximum Number Of Ram Available?

Jun 22, 2010

I have a file called abc.txt which has following contents.

10.180.8.231=31608
10.180.8.232=29011
10.180.8.233=31606

[code]....

View 3 Replies View Related

General :: Find The SVGA Version Number?

Mar 30, 2010

I can track that my CentOS 5 ships with SVGA driver through:

cat /var/log/Xorg.0.log | grep SVGA

But how can I find the SVGA Version number?

View 1 Replies View Related

Networking :: Router - How To Find Port Number For Web Management

Aug 1, 2010

I enabled D-Link (DSL-502T) router web management (I am aware of security implication). I was able remotely to login to the router (by typing http://23.45.xx.6y) before changing the default number 80. Then I changed the port number from the default value 80 to 21908 (https option is not available) for better security, and when I tried to login to the router by typing this :

http://23.45.xx.6y:21908

Yes I am aware that if I am physically near to the router then I can check that , but this is not the case with me. How can I make sure that I had changed port number form 80 to 21908? Does NMAP do a trick to reveal which port is used for web management ? or are there other better options?

View 4 Replies View Related

General :: Find The Driver Module Name Using MAJOR NUMBER?

Aug 16, 2010

how to find the driver module name using MAJOR NUMBER. In general major number list is available in Documentation/devices.txt but if i want to find out the driver module name specific for a given MAJOR NUMBER, what can be done?

View 2 Replies View Related

General :: Find The Installation Number After Installing RHEL?

May 16, 2010

During the installation of RHEL it asks that you may enter the installation number to get packages , updates .....etc, now my server is up and running and i need to get the number that I added during installation

View 2 Replies View Related

Programming :: Find Number Of Child Processes (C / POSIX)?

May 26, 2010

I'm in the process of writing a program that is a server- it will accept connections and stuff, and spawn a child process for each. However, i've run into a small problem. I do NOT want to bother with keeping track of the processes unless i need to. So, i set SA_NOCLDWAIT (#ifdef) on a SIG_IGN to the SIGCHLD handler through sigaction interface. The standard says that it the kernel will then keep track of reaping zombie processes for me (a HUGE plus). However, upon receiving a SIGINT signal, i want to stop the server from accepting new connections (done), and then wait for there to be no new connections. I was thinking of just putting a loop like so:

Code:

while((wait(NULL) != (pid_t)-1) && errno != ECHILD);

However, I'm not *sure* that this will work, especially with SIGCHLD still ignored. So how can i tell if there are still child processes? I can't find any call like int getnumchld(pid_t proc); (i wish). Plus it would be inefficient to spin on that function anyway. OTOH, i would rather *NOT* have to do the same thing in a loop with a system("ps |...>file"); read(file); etc. either. Is there a way i can portably implement this feature (I was hoping i could run it on linux and the major BSDs, at least).

TO SUM IT UP:

How can i tell if a process has no child processes if i've SIG_IGN'd SA_NOCLDWAIT'd the SIGCHLD? Is there a _reasonably_ portable way to do so? I *don't* want to manually wait for EVERY process. Maybe only those still active at the time of SIGTERM, but that requires keeping track of the number of connections and whether those have terminated...

EDIT: Does anyone know if the above code *would* work, even with SIGCHLD ignored and the kernel cleaning up zombies *for* me? I checked the manpage and it doesn't say much.

EDIT1: Note that all of the processes are in the same process group and session. SO i can find them through this as well. Perhaps even setting the uid/gid and finding all processes run by that group?

EDIT2: i have an idea if the above isn't feasible. If there is no "elegant" way to do it, i could reduce the complexity by sending a SIGUSR1 to the whole process group. Each process would then set a flag telling it to send a SIGUSR1 in reply and send a SIGUSR2 when it is done executing. Then i could keep a count of signals. Maybe that would be *easier*. Or perhaps a count of all child processes and just a termination signal to decrement the counter.

View 2 Replies View Related

Programming :: Find Number Of Threads In The Process In C Language?

Dec 23, 2009

I need to find how many threads are alive with respect to the current process for my further processing. Is there any means to trace this number ?[URL]I referred the above link. But sys/pstat.h is not in my system. Don't know which library gives this header.

View 14 Replies View Related







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