Programming :: Ls -R Without Changing Access Time/date?

Aug 31, 2010

I am using cygwin in order to test a bash script that uses the ls -R command. When I use this, the access date of the subfolders are changed, and I need them to remain what they were before the command was run. I don't have access to a legitimate Linux system, so I'm not sure if this is the fault of cygwin or the ls command. The script is being used to find the last access date of all files underneath several subfolders and then return the latest date found in each subfolder as the last access date for that subfolder. For some reason, some of these folders have files in them that are newer than the folder's last access date, so the script is meant to give us a list of the true last access date for these folders.

View 5 Replies


ADVERTISEMENT

Red Hat / Fedora :: Date And Time Changing All Time / Solution For It?

Jan 11, 2010

I have a problem..
the Date and time are changing all the time...

Meanwhile, I'm set the clock every day, But I must find a solution ... Do you have a solution?

View 1 Replies View Related

Ubuntu :: Changing Date And Time

Apr 15, 2010

I installed my linux os in vmware.I need to set time of virtual machine to later time( 2005 ).I have an application whose license expires at 2006 so I have to do this in order for it to work .but when I change it it comes back to the current time ,so what is the solution for this .

View 2 Replies View Related

Ubuntu :: Can't Access System>Administration>Time And Date

May 13, 2010

Lucid 10.04, auto upgraded from 9.10, accessed through NoMachine NX from my MacBook Pro 10.6 system.

When I try to access the time settings through the System > Administration > Time and Date menu, all I get is the greyed-out display with the message Not authotized to make changes at the bottom.

With other administration functions, I am asked for sudo-style authorization with my password. That doesn't happen with Time and Date.

View 2 Replies View Related

General :: Change A Files Modification Date "only" Without Changing The Time?

Oct 29, 2010

I'd like to change a files modification date "only" without changing the time. I'm aware of the 'touch' command but is seems like it only allows changing both the date and time, and not one of them. Any ideas on an easy way to change a file's modification date without also changing its time? (I have a long list of files and thus would like to run one to command to change them all)Example: Change a file's (month) timestamp from "2010-09-23 11:59:23" to "2010-10-23 11:59:23"Background: I accidentally set the wrong month on my camera and ended up with all photos having a modification timestamp with the wrong month.

View 3 Replies View Related

Programming :: Add Date/Time To The Message Body?

Sep 6, 2009

- how to add the date/time to the email (message body)

- how to as the user to add a picture

- how add on an error page a button to send it back to the form so that the input does not get lost

Here the program so far:

<?php
/*
CHFEEDBACK.PHP Feedback Form PHP Script Ver 2.15.0
Generated by thesitewizard.com's Feedback Form Wizard 2.15.0.

[code]....

View 1 Replies View Related

Ubuntu :: File Access Time Not Changing?

Nov 24, 2010

I am trying to modify the file access time in a Python routine I have. I have I believe the correct code for this but have a greater issue. Looking at a random file in my home directory I can see it was last accessed yesterday (I didn't open this file yesterday) so it was presumably my virus scan. No problem there Now I have opened the file today,rescanned the file for viruses and read the file in Python and the file access time remains the same!I have checked the access time by right clicking on the file and choosing Properties, using "ls -lu", and using os.stat(path) in Python.

View 9 Replies View Related

Programming :: Convert A Given Date To Epoch Time And Vice Versa?

Jan 5, 2011

I'm developing a C++ application which is run on linux. I need to calculate epoch time for a given date and vice versa. (no of seconds elapsed since 1979-01-01) I used the following two methods.I need to convert the given date to epoch time and again convert that epoch time to the corresponding date.But the following methods doesn't give me the correct answer. Method to calculate the epoch time:

Code:

time_t HistoryCache::ConvertTimeToEpoc(const char* _zTime,const char* _zFormat)
{
struct tm tmTime;
strptime(_zTime,_zFormat, &tmTime);

[code]....

My problem is this. Lets think that the value I get as epoch time for the 2010-01-05:000000 is 1262649600. (lTime value) Then I use the same value (1262649600) as a input to the GetTimeStamp method, I didnt get the dateString as 2010-01-05:000000. The date is changed by one day.

View 2 Replies View Related

Programming :: How To Sort Two MySQL Table On Date Or Time Column

Jul 27, 2011

I have two different table in a database in mysql that has no share key with each other and I want to sort them with each other on their date time column I mean when I sort it row X of table A that is older that row Y of table B comes earlier.

View 3 Replies View Related

Programming :: Why Does Strptime (c++) Seem To Not Correctly Parse Date/time String

Feb 8, 2010

here is the problem code using strptime() function.

==================
#include <stdio.h>
#include <string.h>
#include <time.h>

[code]....

Why are the Month and Year so messed up? I am using strptime() according to the man page.

View 2 Replies View Related

Programming :: Converting Epoch In A File Name To Human Readable Date/time?

May 5, 2011

I have log files that everyday are downloaded from my webserver in the format: Code: samplesite.com.xxxxxxxxxxx.gz xxxxxxxxxx is a 10 digit epoch time. I am trying to figure out a way in batch to:

1. find all of exisiting files containing the pattern (after the first run it will only be one a day)
2. Isolate the epoch string
3. convert the epoch string to human readable date/time
4. rename the original file as samplesite.com.mmddYYYY.gz

View 2 Replies View Related

Programming :: Rotate Image (Script) Without Changing "modified" Date?

Nov 18, 2010

I am actually modifying someone else's script and I need some help. The original script rotated image files to the left but it changed the "modified date stamp" which is something I didn't want.

Code: #!/bin/bash
while [[ -n "$1" ]]; do
#if a file and not a dir
if [[ -f "$1" ]]; then

#the images that I copy from my cell phone don't have exif headers #so I am using the -mkexif switch first to match the exif information #to the "created date" in the .jpg file. jhead -mkexif "$1"

[Code]...

It's important to note that the original script, before I made any edits, did not have this quirk whereas I needed to "touch" the file to get it to orient itself correctly. The 'original' script is in black; my additions are in blue.

View 4 Replies View Related

Fedora :: Network Time Protocol Part Of Date / Time Settings

Oct 3, 2009

I've got fedora 11 set up to use network time protocol to sync my laptop's date & time when I'm on-line. The question is simple really, I've added a local universality's time server (what is public) and it's live. but it's added to the end of the default time servers what come with fedora. How do I get fedora to just use the local time server, is it a case of removing the default time servers for fedora, but there is a box what says advanced options which are. sync system clock before starting service ???? & use Local time source (( is that the same as the local ntp server that I've got set up ))Hope some body can help me with the network time protocol part of Date/Time settings.

View 9 Replies View Related

Ubuntu :: Set Time To Singapore Server With Time And Date?

Oct 28, 2010

I want to synchronize my time to a time server in Singapore. How can i do so with the Time and Date in System - Administration - Time and Date?

View 4 Replies View Related

General :: Changing The Date IST To GMT?

Jun 19, 2011

Somehow during a recent ubuntu install I managed to set my clock to Indian Standard Time instead of Greenwich Mean Time. Now I'm having problems acessing some websites and I think it's because the certificates appear to be off date.

View 2 Replies View Related

Ubuntu :: Changing The Date Format?

Oct 12, 2010

Is it possible to change the date format in Ubuntu 10.04 from the American mm/dd/yyyy to the British format of dd/mm/yyyy? I have looked at the Time/Date settings but cannot see any way of changing the date format

View 4 Replies View Related

OpenSUSE :: 11.1 - Date And Time Not In Sync

Mar 22, 2011

My date and time is not syncing correctly. I have 2 opensuse 11.1 servers and on both when you adjust the time in yast, I go back into yast and the setting for the NTP server is not set and "manual" is checked. I tried many times and the setting keeps reverting back. I always click on Save NTP configuration.

View 2 Replies View Related

General :: Date - How To Set Current Time

Jun 26, 2011

Why is the output of the following commands different?

root@vmi2115:/var# hwclock
Sun 26 Jun 2011 01:21:38 PM CEST -0.273230 seconds
root@vmi2495:/var# date
Sun Jun 26 15:21:39 CEST 2011
root@vmi2115:/var#

And can I change the current time on Linux?

View 4 Replies View Related

Ubuntu :: 8.10 - Date And Time One Month Behind

Mar 5, 2010

When I boot up ubuntu 8.10 the time and date are a month behind. Is there anyway of correcting this?

View 8 Replies View Related

Ubuntu :: Adjust Date And Time In 10.10?

Dec 5, 2010

If one right-clicks on the date and time tab in Ubuntu 10.10 desktop, then there is no obvious way to change the time. If one right-clicks and goes to help, then the explanation for changing time is as follows under the category 'usage':

2.3. To Adjust the System Date or Time.

To adjust the system date or time that the Clock applet displays, perform the following steps:

1. Right-click on the applet, then choose Adjust Date & Time.

2. Type the root password, then click OK.

3. The Clock applet starts the system tool that sets the system date and time. Use the tool to adjust the date and time.

The actual way to do this is as follows:

Right-click on the date and time applet. select preferences, and down at the bottom of the window that opens push the 'time settings' button.

Then you will be able to adjust that date and time.

View 3 Replies View Related

General :: Rpm -qa --last Lists All Rpm With Date And Time?

Oct 4, 2010

rpm -qa --last lists all rpm with date and time. But I want to sort the list by date, with earlier rpm displayed first. So it needs pipe, rpm -qa --last |

View 2 Replies View Related

Software :: Run Script Once At Certain Date And Time?

Mar 18, 2010

I was wondering if anyone has discovered a way of either using cron or by custom scripting, to run a script at a certain date and time only once. The purpose would be to make one-off changes to dns zone files, or to virtual host configs on an apache server, or changing any type of text file at say 12:01am rather than waking up at 12:01am (when our maintenance windows start) to make changes to production servers.

View 4 Replies View Related

Debian :: How To Change DATE / TIME Format

Jul 23, 2011

I set my location, but Debian displays DATE in some messed format. I would expect such neat OS to recognize all those local settings based on my location, but that's not the case. It seems that Debian follows locale settings by set language (which is en_us in my case, as I guess in majority uses) or this format is default in any case

I would like to set date/time to DD.MM.YY. hh:mm:ss, and programs that display date data to follow this setting. Simply put, in Windows there is Control Panel and you set location, then OS uses some regional settings, like currency, separators, date/time format.

View 7 Replies View Related

Fedora :: Know The Time And Date Of A File Downloaded From The Net?

Dec 3, 2009

How do I know the time and date of a file downloaded from the net. Is it possible at all? If I want to know when the downloaded file such as a text file was created ie written by the author if not mentioed at all in the entire document. The command I use locally to know file creation time is given below.

Code:
ls -l filename.txt
-rw-r--r-- 1 root root 691 Dec 3 11:12 filename.txt

View 2 Replies View Related

Fedora :: Can't Change Date / Time Format In F15

Jul 10, 2011

In the past, I just edited the /usr/share/gnome-shell/js/ui/dateMenu.js file to alter the date and time format. Today when I tried that, it crashed GNOME Shell and wouldn't let it start..

View 4 Replies View Related

Fedora :: How To Customize Date / Time Format

Aug 7, 2011

For some reason, thunderbird uses some random order for the date elements, e.g. MM/DD/YY. I need to change it to YYYY/MM/DD but haven't found where! There is no option in TB to configure this so I guess it just picks some default from regional settings? Where do I need to go to set the date format to its logical form?

View 3 Replies View Related

Ubuntu :: How To Make Time & Date Persistent

Aug 26, 2010

I've noticed that every time this desktop is turned on the date & time are as they were the last time I used it, and then have to put in the correct date & time again (this is why I chose the word 'persistent' within the tittle). When I try to change those have to write in the password for the date as well as for the time as if 'login-in' once were not enough! What I want to know is how to put in the date & time and receive the correct amounts the next time I turn the unit on again, as it should be? Do I've to open a terminal & do it with administrator's authority/credentials?

View 3 Replies View Related

Ubuntu Servers :: Date And Time Not Updated On 8.10?

Aug 31, 2010

On my virtual machine ubuntu 8.10, the date and time settings are not updated every time when I restart the machine.

View 2 Replies View Related

Ubuntu :: Date And Time Can't Unlock Popup

Mar 10, 2011

ubuntu 10.10 64bit my system clock keeps running late, and for some reason, I can't use NTP to synchronize it.If I try to use System -> Preferences -> Administration -> Time and date I can't unlock the popup (see attached screenshot) - I can click on the little yellow lock icon but when I do so, nothing happens.I tried "sudo ntpdate..." but i get the "the NTP socket is in use, exiting" error.

View 9 Replies View Related

Ubuntu :: Deleted The Things Near The Time/date?

Mar 22, 2011

the section where the wireless signal and sound control is?To the left of the time/date in this picture:

View 2 Replies View Related







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