General :: Sort As Per The Dates And Months

Feb 22, 2010

I am getting little bit difficult in sorting the date ranges which are in a field like:

How make a sort as per the Month and date , i mean result should be as per the month and date wise. If i go for the sort -M , i am not able to get the list as per date of the particular month.

View 4 Replies


ADVERTISEMENT

General :: Take Up The Exam In Another 4-5 Months?

Feb 15, 2010

tell me how good Ashgar gori (RHCE) book is for RHCE i have to take up the exam in another 4-5 months.

View 6 Replies View Related

General :: Booting Ubuntu Running In W7, It Worked Ok For About 2 Months?

Dec 30, 2010

Does anyone know how I might enable my boot to Ubuntu again? Here is what I have found but do not know what I should fool with. I thought I would ask for help before I screw it up worse.I have Ubuntu 10.04.1 installed inside W7 effectivly creating a dual boot system. It's been running fine for about 2 months. Now when I try to boot into Ubuntu by selecting the boot Ubuntu option in the Windows Boot Manager, it fails and goes back to Windows Boot Manager. There are 2 screens that flash by in about 1/2 a second when enter is pressed after the ubuntu selection and before it reverts again to the Boot Manager. With the help of a camera and good timing, I captured a picture of the text displayed.

The first screen displays;Try (hd0, 0) NTFS5 No wubildrTry (hd0, 1) NTFS5 _The second screen displays;error unknown command loadfonterror file not foundIn the windows C: drive I find the 2 files; C:wubildr created 12/19/10 size 87kbC:wubildr.mbr created 11/7/10 size 8kb (created the date I installed Ubuntu)In C:ubuntuwinboot... I find the same two files with the same size and creation dates as in the windows c: drive. In addition I also find a file, C:ubuntuwinboot.wubuildr.cfg, created 11/7/10, size 2kb, described as a MS Office Outlook configuration file.There are also a files;C:ubuntudisksootgrub but the grub directory is empty. The grub directory was created 11/7/10. Should there be a file in the grub directory?

View 2 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

General :: Compare 2 Dates In European Format (dd/mm/yyy)?

Oct 12, 2009

I need to compare 2 dates in european format (dd/mm/yyy). date -d<my date> %s command converts date into unix epoch (integer), thus make it easy to compare. The problem is that -d (or --date) option interprets date in US format-ie mm/dd/yyy.

View 4 Replies View Related

General :: Convert Past Or Future Dates In Awk?

Mar 20, 2010

All I see from googling examples in awk is converting current date. How do I convert a list of past or future dates for example :

Jan18'09
Aug 7'98
Jun20'11
Apr 1'10

I will be using it to compare dates in a file and act on it accordingly.

View 5 Replies View Related

General :: Rsync Files With Dates After A Certain Date?

Jun 8, 2010

I was going to do a rsync -r -a -z -v -p -e sshto move some files frome server to another, but then realized all I really need are files which have dates starting June 1, 2008 to current. Is there a way to have rsync only sync those files?he directory structure that's my source goes all the way back to 2004.

View 5 Replies View Related

General :: Kill All The Processes That Have Dates Older Than Today?

Feb 11, 2011

I issue the command ps -aux | grep tony. It displays the following output

tony 10986 0.0 0.0 33532 464 ? S Feb01 0:00 vncconfig -iconic
tony 10988 0.0 0.0 86012 512 ? S Feb01 0:00 twm
tony 15553 0.0 0.0 92404 1848 ? S 10:34 0:00 sshd: tony@pts/34

[code]....

View 3 Replies View Related

General :: Processing Log File Within Certain Dates Based On Filename

Apr 8, 2010

I am working on the script parsing specific message "TEST" from multiple file. The log file name looks like:

N3.2009-11-26-03-05-02.console.log.tar.gz
N4.2009-11-29-00-25-03.console.log.tar.gz
N6.2009-12-01-10-05-02.console.log.tar.gz

I am using the following command:
zgrep -a --text "TEST" * | awk -F"[ .,]" '{sub(".*:","",$6); sub(",.*","",$7); print $1,$6,$7,$10}
and getting
N3 2009-11-25 20:12:57 TEST
N4 2009-11-28 10:42:18 TEST
N6 2009-12-01 10:00:24 TEST

If I only want to search the log file after 2009-11-29, what shall I change the command?

View 1 Replies View Related

General :: Delete Old Directories Based On Dates In It's Dirnames?

Jul 13, 2011

I have tried to find the solution for my problem on this site and other sites but haven't found a good enough answer yet. Maybe some of you can help me out here?What i need is a script (bash preferrably) that can delete directories based on a date in its dirname.For example.I have a bunch of directories that is named

data-20110623/
data-20110624/
data-20110625/

[code]...

View 5 Replies View Related

General :: Script To List Deleted Files With Dates?

Mar 29, 2011

I created a script to move files to a "trashbin" This is my code:

Code:
mv $1 /home/giovanni/trashbin
echo "$1 Deleted"

[code]...

View 13 Replies View Related

General :: Parsing File Dates - Get The Date Of The Last Time A File Was Modified ?

Jan 11, 2010

I need to get the modified date on a file in linux to use in a script.I tried using 'ls -l' on the file, but this caused problems when the date turned from a single digit into a double. The reason for the problem was because I was parsing the result string on spaces.How can I get the date of the last time a file was modified so I can use it in a script? For example, if a file was modified on 1/11/2010, I need the 11.

View 2 Replies View Related

Server :: Run Cronjob Once Every Three Months?

Apr 30, 2010

I am trying to run the following only once every three months but looks like it runs every day. I edited crontab -e and added the following:

Code:

0 23 * jul,oct,jan,apr * /path/to/script > /var/log/script.log 2>&1

View 2 Replies View Related

Red Hat :: Generate Audit Log Every 6 Months

Mar 8, 2011

I'd like to know how do I rotate the audit logs under "/var/log/audit/audit.log" every 6 month. Currently I have set the parameter inside /etc/audit/auditd.conf to "KEEP_LOGS" (Previously "ROTATE" )and logs files are generated up to the size 5M and never deleted. Do I need to change inside "/etc/audit/audit.rules" file?

[root@RHEL5 ~]# more /etc/audit/auditd.conf
#
# This file controls the configuration of the audit daemon
#
log_file = /var/log/audit/audit.log

[Code].....

View 4 Replies View Related

Ubuntu :: Automatically Run Fsck Every Few Months?

Sep 5, 2010

I just recently switched from Windows to Ubuntu 10.04, and I remember that Windows had a disk check. I have no problems with my computer, but is it a good idea to run fsck every few months? Does Ubuntu automatically do this for me? Or this unnecessary unless I have a serious problem?

View 2 Replies View Related

Ubuntu Networking :: Unable To Connect With 3G After Not Using It For 2 Months

Jun 5, 2011

Yesterday I tried to connect using my 3G, it has been working since I installed the computer more than a year ago.

When I try to connect I get the following in the syslog (and daemon.log)

Code:
Jun 5 10:50:21 ubuntu NetworkManager: <info> Activation (ttyUSB0) starting connection '3 Bredband'
Jun 5 10:50:21 ubuntu NetworkManager: <info> (ttyUSB0): device state change: 3 -> 4 (reason 0)
Jun 5 10:50:21 ubuntu NetworkManager: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled...

[Code]....

After alot of swearing ang scratching of the head I've resorted to trying this from i live cd, but with the same results. I know I've been able to connect using livecd before so I'm a bit worried that something might have happened with the hardware.

What I'm hoping for though is some way to determine that it is the sim-card and/or something on the operator side that is bork.

how to further pinpoint the issue? And/or troubleshoot the hardware? I should be able to send AT-commands directly to the modem, does anyone know how and/or the syntax for establishing the data connection?

EDIT: I'm using an Asus eee 901 with builtin 3G modem.

View 3 Replies View Related

Ubuntu Multimedia :: Bought 3 DVD Drives 3 Months - Burning CDs / DVD's Don't Go Together?

Dec 25, 2010

it seems Ubuntu can't just BURN CD or DVD. I've used Brasero, GnomeBaker, K3B - They all miserably FAIL.

Plus, they Break My DVD Drives, after trying sooo Many Times, leaves it behind useless.

I bought 3 DVD Drives: Lite-On, Sony and LG. In a span of 3 Months, UBUNTU completely DESTROYED all of them.

I'm not sure why. BUT first, I find Ubuntu can't burn using above Applications. 2nd, DVD stops working.

Error message from K3B, using it, since it's the most stable I've found. cdrdao crashed, file permissions problems, perhaps TAO will fix this, and a lot more of these crap.

View 6 Replies View Related

Ubuntu Multimedia :: Months To Get Consistent Audio To Work?

Mar 22, 2011

I have an intel HDA chipset that desperately wants to work. I have it plugged into my receiver and sound only occassionally works. I say occassionally because I will hear some sound, then my receiver will flash hdmi, as if it is switching to the new stream, I hear silence. Then shortly later, the receiver will provide sound, then again it will 'switch' and i hear silence. To work around this, I had an optical line working and somehow had alsa using ONLY that for the audio (bypassing the HDMI completely). Then one day when I was trying to the audio fixed for some specific application, I broke it! I cannot figure for the life of me how to make alsa ONLY use my optical line. Of course any suggestions on how to get the hdmi to work is even better.

View 5 Replies View Related

Server :: Apache Segfaults After Months Of Running On Ubuntu?

May 13, 2011

OS: Ubuntu Server x64 10.04 Apache: 2.2.14-5ubuntu8.4 I have a virtual server which has been running for months with no problems then one day I saw that it crashed and I had to power cycle it. Since then I have been unable to start Apache as it segfaults no matter options I give it. Before I try to reinstall Apache, why is this segfaulting?

Code:
execve("/usr/sbin/apache2", ["/usr/sbin/apache2"], [/* 21 vars */]) = 0
brk(0) = 0x7f9f48f8d000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9f47e0d000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3

[Code]...

View 2 Replies View Related

OpenSUSE Network :: Explode In Couple Of Months From All Backed Up Addresses?

Jul 21, 2010

The default installation of 11.3 has ipv6 enabled.When accessing a site using any browser, there was a considerable delay before the page would appear.I disabled ipv6 and things are normal.Is my computer going to explode in a couple of months from all the backed up addresses? Seriously, Is there something wrong with my setup?Why would ip6 be enabled by default if it slows things way down?There are just so many things I don't know.

View 6 Replies View Related

Ubuntu Servers :: Lost Months Of Data After Power Failure?

Nov 13, 2010

Running Ubuntu headless server 9.10 with a RAID 1 on ext3. After a power failure (UPS power button was hit accidentally), I logged into the system via ssh and found that I had lost all data since my last reboot, which was 4 months ago. It was as if I had a perfect snapshot of my machine from 4 months ago. Everything, database files, logs, all report as if the machine had been off for 4 months. Fortunately, I have quality backups of all my data so I am able to recover, but I have never had such a problem before and I cannot figure out what happened.

View 4 Replies View Related

Security :: Block User Accounts Who Has Not Logged In To The Server Last 2 Months?

Mar 1, 2011

We have 4 servers having rhel 5.2. We have several users logged in on one of them. We have nis server/client running on them and have common home area mounted on all of them. Now we want to disable/block the accounts of the users who have not accessed our servers in last 2 months from today.What logic should we apply to do so? We were checking stat of .bashrc of each user but is not correct logic. We are going to write shell script for the same. We dont want to do anything in users home area or their files.

View 11 Replies View Related

Fedora :: Webcam Was Working When Installed 12 But Now It Doesn't Work After About 2 Months Of Playing With This OS?

Feb 10, 2010

My webcam was working when I installed Fedora12. But now it doesn't work after about 2 months of playing with this OS. Because of this, I decided to reinstall it's driver.I downloaded it from ATrpms website, but if I try to install it the terminal says"/boot/vmlinuz-2.6.31.12-174.2.3_1.cubbi_tuxonice.fc12.x86_64 is needed by uvc-kmdl-2.6.31.12-174.2.3_1.cubbi_tuxonice.fc12-0.20090806-4.fc12.x86_64"File needed: /boot/vmlinuz-2.6.31.12-174.2.3_1.cubbi_tuxonice.fc12.x86_64File wanted to be installed: uvc-kmdl-2.6.31.12-174.2.3_1.cubbi_tuxonice.fc12-0.20090806-4.fc12.x86_64

View 4 Replies View Related

Ubuntu Servers :: Automatically Delete Files Older Than 6 Months In Folder

Mar 27, 2010

I have server running ubuntu. There is folder /var/netflow and I have there files, which creates every 5minutes new ones(monitoring traffic on network). And I need to delete files older than 6 months manually. Can you help?

View 2 Replies View Related

Software :: Disable / Block The Accounts Of The Users Who Have Not Accessed The It From 2 Months From Today

Mar 4, 2011

We have 4 servers having rhel 5.2. We have several users logged in on one of them. We have nis server/client running on them and have common home area mounted on all of them. Now we want to disable/block the accounts of the users who have not accessed our servers in last 2 months from today. What logic should we apply to do so? We were checking stat of .bashrc of each user but is not correct logic. We are going to write shell script for the same. We don't want to do anything in users home area or their files.

View 2 Replies View Related

Software :: Dir And Dates Listings Are Not Consistent?

Jan 26, 2011

It only occured to me now, but why is it that date listings are not consistent?

ex:

Code:

They are all Month Day Year but one (from that particular extract, there's more), why is the 3rd there one Month Day Time? I know the year is not 2011 because we have not hit august 2011 yet, but what if it's 2009 or 2008? I would not know.

One of my sites got hacked and I'm just trying to figure out what the hacker got into and trying to figure how he got in so I can fix the exploit.

View 3 Replies View Related

Programming :: Bash Shell Scripting / Using The Sort Command To Sort The Top 5 CPU Processes?

Feb 28, 2010

What options should I use when I'm using the sort command to sort the top 5 CPU processes (ps -eo user,pid,ppid,%cpu,%mem,fname | sort ??? | head -5) showing max to min usage?

View 2 Replies View Related

Ubuntu Security :: Interpret The 'dates' In Rkhunter.log?

Oct 6, 2010

I've got rkhunter installed and regularly do scans immediately before & after updates & if I get warnings about 'file property updates' after the update I use 'rkhunter --propupd' to give me a clean run.I'm about to setup a ubuntu computer for my nan, I want to enable automatic security updates so she doesn't have to do anything to keep her system secure. I was planning on running rkhunter when I go to her house (about once a month) and check the dates in the resulting rkhunter.log warnings with those in the var/log/apt/history.log to see if legitimate updates caused any rkhunter warnings. I've noticed though that the 'Current file modifiation time:' in the rkhunter.log warnings are incorrect.

My system seems to be about 15 days behind the actual date, I've now run rkhunter --propupd so I have no warnings but got this one off another forum post to show what I mean:

Current file modification time: 1283341157 (01-Sep-2010 06:39:17)

I believe that the '1283341157' is the time in some strange format and the date in brackets is what rkhunter thinks it might be in human format.

1) How to interpret the 'strange date format' (1283341157 in the line above)?

2) If there's a way of configuring the date in rkhunter so that they're correct in rkhunter.log?

3) If there's a better way of keeping her system up-to-date & secure, it's her first computer & she's 86 so I think setting up automatic security updates is the way to go, it'll be one less thing to overwhelm her!

View 2 Replies View Related

SUSE :: Get All Month Start And End Date Between Two Dates?

Dec 22, 2010

I have a requirement where I need to write to a file a block of static text for each month starting from 01-01-2000. It would be something like below

[code]...

View 2 Replies View Related

Programming :: Script To Generate Random Dates?

Aug 3, 2010

A script to generate random dates. It uses the year range 2006-2009, and truncates every month of the year to an ordinary February's 28 days, but otherwise it's pretty solid and safe.

Code:
spate=1
while [ $spate -le 120 ]

[code]....

View 1 Replies View Related







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