Log in



Tags » ‘File’

How can I use Perl’s Copy package to preserve timestamps of the original file to be copied?

August 8th, 2010 by

Question by Michael R: How can I use Perl’s Copy package to preserve timestamps of the original file to be copied?
I’m using openSuse Linux with the standard Perl packages. I need to use Perl’s copy rather than UNIX’s “cp -p” because I need the error checking.

Best answer:

Answer by martinthurn
There is no “Copy” module, I assume you mean File::Copy. But that doesn’t matter, they way to get & set file timestamp is a FAQ entry, see below

Give your answer to this question below!

File indexing C++ or python?

July 25th, 2010 by

Question by travis s: File indexing C++ or python?
So what I’m doing is building a Real-time Anti-virus for Linux/UNIX(maybe windows). It uses checksums to find static malware, and hex to find dynamic malware, using ClamAV definitions. But the thing that i can’t seem to do is index the whole System and check for changes, and if a change occurs the changed/added file will be scanned. So all i need to do is index the whole system and upon change i need to know where the change occurred(including the file name) and what change it was, file added, removed, changed, maybe even moved. Is this possible in C++ or python, if it is will it completely drain the resources? And also how do i do this?

Best answer:

Answer by Lisa A
Register for file system change notifications.

http://msdn.microsoft.com/en-us/library/aa363950(VS.85).aspx

“maybe windows”

What do you think? Answer below!


Powered by Yahoo! Answers