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
ADVERTISEMENT
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
View Related
Nov 23, 2010
suppose i have two file with same name fstab one file is located in /etc and the other is located in /root/ If i make a change in /etc/fstab file the changes has to reflect in /root/fstab . Is there any command to do this?
View 6 Replies
View Related
May 27, 2010
I know this command exists I just can't seem to find it. I want to see the last few lines of a file as more are added in real time. Can someone point me in the right direction?
View 2 Replies
View Related
Jan 5, 2011
Is there a bash command that I can use to determine the last file access time? I know about -atime option for the find command, but I want to doublecheck to make sure that I'm doing this correctly (the output when I use find -atime isn't what I expect).
View 4 Replies
View Related
Mar 19, 2010
How do I list only access time and file name? For example if I do ls -l --sort=time then
[Code]...
View 5 Replies
View Related
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
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
Dec 2, 2010
I think I selected the wrong time during the installation and now at the top right corner, my time keeps changing back to one hour ahead. Not sure why.I've went into the Preferences of the Time/Date > Time Settings > and set an hour back manually. I check back in 30-45 minutes, it's back another hour ahead. I'm on a Dell Inspiron 1545.
View 1 Replies
View Related
Sep 18, 2010
I have an Asus laptop with both Win7 and Fedora. Whenever I change the time in Fedora to the correct time and reboot into W7 the W7 time is messed up - about 7 hours earlier. If I set W7's time to the correct time and then reboot to Fedora, Fedora's time is then 7 hours early. For some reason I can't get both OS's to agree it's the same time.
View 10 Replies
View Related
Dec 15, 2010
I want to to change my time zone from PKT to GMT but when I do it from setup command it give the following error:
Traceback (most recent call last):
File "/usr/share/system-config-date/timeconfig.py", line 112, in ?
runConfig(rc)
[code]...
View 2 Replies
View Related
Mar 21, 2011
Anyone have an alternative to gconf-editor for changing the idle dim time? I have a Vaio, which hasn't exactly been compatible with ubuntu but I've been making it work.What I'm looking for is an alternative, like the the one I'm using to control the back light (nvclock).
View 2 Replies
View Related
Mar 17, 2011
It's pid is increasing all the time...
I'm writing a program to display all the process's info, this process really bother me.
Oh..the Chinese words are sleeping..., can't use, can't use
View 2 Replies
View Related
Sep 23, 2010
Registered: Sep 2010
Location: Pune
Distribution: Fedora and redhat
Posts: 2
Rep: Reputation: 0
how can i change sleep idle time in fedora
View 1 Replies
View Related
May 31, 2010
I am changing the password of a truecrypt file container. This takes around 1 minute. Why?
time truecrypt --text --change /tmp/user1.tc --keyfiles= --new-keyfiles= --password=known --new-password=known --random-source=/dev/null"
If I use strace I see that it basically does not do anything: it simply reads lots of random data from /dev/urandom (even if i specified /dev/null as random source) and finally changes the password:
open("/dev/urandom", O_RDONLY) = 6
read(6, "36&{35121221234320234313242312I326235245224300354O)270Q200 201J227224311_212367"..., 640) = 640
close(6) = 0
View 1 Replies
View Related
Oct 25, 2010
Running RHEL5 and because of the environment that we are in we have to disable the users being able to change the screen saver. I have tried using the gconf-editor to see if I can disable it but don't know if that is the correct way of doing it. I also looked in /etc/xdg/menus and really don't want to miss with that.
View 2 Replies
View Related
Jun 22, 2010
The times aren't staying the same when switching between Slackware and Debian. When the time is right in one, it's wrong in the other.I've spent some time reading about this sort of thing, but this particular problem...
View 3 Replies
View Related
Sep 27, 2010
how to access current date and time from the system through CMOS in C programmes in Fedora.
View 1 Replies
View Related
May 5, 2010
How can I change the time interval of the rtorrent for contacting the tracker server? I talk for the procedure which asks from the tracker new peers. currently in my rtorrent it is 3000 seconds which is not the best option when it comes to private trackers.
View 1 Replies
View Related
Jul 25, 2010
I downloaded Ubuntu last year and was mightily impressed. I'm not really a techy kinda person, but ubuntu was pretty straightforward to install and set up the packages and stuff like soulseek. however since then i moved to thailand and now I live in Myanmar and Thailand...my problem is that although the internet still works, everything else like updates, Synaptic, IRC, Soulseek don't work anymore...i've lived with it for 6 months, but now it's becoming a problem because i would like to download some more software...is there a simple solution to this or does ubuntu simply not cover these areas?
View 7 Replies
View Related
Mar 10, 2011
I was doing a tutorial on scripting in bash. I saved my file on the desktop and I cannot seem to get to that file to execute it. Here is what I have been using:
I try cd Desktop says that there is no such directory.
I tried /home/me/Desktop same thing.
View 5 Replies
View Related
Jul 12, 2010
We have some large files with sampling data in it. Don't want to delete these files. But want to quickly overwrite the file with 0s and/or 1s and preserve the original file size.
View 3 Replies
View Related
Mar 17, 2010
I tried changing the sftpserver port but its not working, besides how can i restrict users from particular ips.Eg: users a can ssh from 192.168.*.*user b can sftp from 200.*.*
View 2 Replies
View Related
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
Apr 3, 2009
I have several directories, each owned by root and a group of the same name,By setting the sgid bit, I made sure that newly created files and directories are owned by the correct group, and that directories have the sgid bit set too.On each newly created directory or file, the permissions are set to 755. This is because this is the default umask, and I cannot change a users umask. I actually only want files created below a particular directory to have group write access, inheriting this behaviour to newly created directories properly.I'm not on samba or NFS, I have to do this for SSH users.The filesystem is ext3.I started to fool around with ACLs, but couldn't find what I was looking for.
View 3 Replies
View Related
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
Jun 11, 2010
I'd like to be able to limit access to a particular website, based on the time of day. I would also like to be able to password protect this if possible.So for instance, from 7am until 10pm daily, I can access URL... but after 10pm it redirects to 127.0.0.1 or something. And this configuration be protected by only allowing a certain user (other than root) to change the config?
View 7 Replies
View Related
Jun 26, 2010
I managed to install a second hand 10Gb HDD on my old P4. I want to see how I can use this extra disk to speed up Ubuntu 10.04 if possible.
I installed my swap onto this second drive but since I never use swap I can't see any real improvement. Next, I'm considering the creation of a new partition on that disk that would handle /tmp. Could that improve access times?
Finally, what other tricks could I use with this 2nd HDD to speed things up?
View 6 Replies
View Related
Sep 1, 2010
When I try to access a network connected folder bying on etwork->ComputerName->FolderName, I almost always get this message:Unable to mount locationDBus error org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)If I click OK and try again a few times, sometimes it will connect and everything is fine after that. If not, I can issue a mount command in the terminal and access the /mnt folder that way with no problems, but clicking Network, I still get the timeout command.
View 1 Replies
View Related
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