Fedora :: Script For Collecting Metadata On Modified Files

Nov 30, 2010

I have a simple scripting question. I am trying to list all files that have been modified in the last day and then collect metadata on those files. This command is going to be run on a number of nodes via ssh so I would like to append the hostname to start of each line (the below example has blade1 as the hostname). As you can see the loop is splitting the ls command out onto a separate line for each value. What I need to do is keep the `ls -ld` output all on one line and have the hostname echoed in front of each line.

for i in `find /var -mtime -1 | xargs ls -ld`; do echo `hostname` $i; done
blade1 drwxr-xr-x.
blade1 2
blade1 user
blade1 group
blade1 4096
blade1 Nov
blade1 30
blade1 08:55
blade1 /var/cache/gdm/user

View 8 Replies


ADVERTISEMENT

General :: How To Copy Only Modified Files

Sep 2, 2010

Possible Duplicate: Linux equivalent to robocopy? I have two websites - one is basically a development version and the other is a production version of the same site. So I'd like to be able to merge the changes made to the development site based on the modified date of the files. Is this possible with the 'cp' command?

View 2 Replies View Related

General :: Search Files Modified In A Specific Day?

Dec 2, 2010

How can I search files modified in a specific day?

View 2 Replies View Related

General :: Upload Only Modified Files To FTP Server

May 23, 2011

I want to upload files from my computer to an FTP site and I don't want to upload files that are already on the server. So I need a tool that finds out which local files that are different from the ones on the server, or that don't exists on the server.

Some requirements:

I'm using a cheap provider that does not support rsync or ssh, so I can only use FTP. I generate the files before uploading them, so comparing timestamps is meaningless. I've tried lftp with the mirror command. It's slow (I think it uploads all the files). I upload the files from different computers, so I can't use sitecopy, which uses a local database to keep track of which files are on the server. I'd like to be able to upload all changed files with one command. Preferably no GUI application. And it needs to run in Ubuntu.

I was thinking about creating a tool similar to sitecopy, but which stores checksums of all the files on the FTP server on the server itself. But then I thought that there may already be such a tool.

View 1 Replies View Related

General :: Copy Only Files The Have Been Modified Today?

Jan 22, 2011

How can I make copy only files the have been modified today

as far as get

Code:
find myworkingfolder -ctime 0|xargs -i cp {}-ap bakupfolder

Is it ctime or mtime? and how i add this command to crontab?.

View 2 Replies View Related

General :: Display The Last 10 Modified Files Of A Folder?

Jul 23, 2010

I need to know the last 10 modified files in a folder.

View 8 Replies View Related

Red Hat :: List Modified Configuration Files [ CentOS 5.4 ]?

Feb 20, 2010

I am searching for a program which may be used in order to display a list of modified (non-distribution-default) configuration files. For example, assume we have installed package "example-utility" which uses /etc/example-utility.conf as one of its configuration files. The package provides a default configuration file upon its installation. Assume we have modified /etc/example-utility.conf according to our needs. This file should be included in the listing produced by the program I am looking for.

If such a tool does not exist, I would like to create it. However, I am new to RPM-based systems, and, as such, I am having difficulties finding the necessary documentation. Should I be reading the yum source code? Is there some sort of document describing the package database on RH/CentOS/etc. systems and how 3rd party applications are supposed to work with this database?

View 6 Replies View Related

Ubuntu :: Backup NTFS Files Modified After A Certain Date?

May 14, 2010

I clone my entire notebook hdd once a month to a USB drive with an identical disk once a month using dd. I would like to find a way to automatically or manually do incremental backups at shorter intervals.

The first problem is that my incremental backup drive is not the same as my full backup drive (which is my clone). Is there some way to backup or copy all files on a document partition modified after a certain date?

The second problem is that my document partition is NTFS-3G. I guess this could be done pretty easily using "dump" if I stored my docs on ext. [I don't because I want to make sure that my docs are accessible from any machine (say in an Internet cafe) should my MacBook die and I need to rip out the hard drive and run to do my homework on another system; that is why I keep my docs on my Vista partition].

View 1 Replies View Related

Ubuntu Installation :: List Modified System Files?

Aug 12, 2011

I'm about to do a migration on a laptop where I have had to make a number of modifications to files mainly in /etc/ but I have lost track of what I have done. Does anyone have any suggestions as to how to identify those files that have been modified from their packaged versions?

View 3 Replies View Related

Networking :: Rsync - Sync Files Modified Within The Last 60 Days?

Jun 3, 2009

Can anybody tell me how I can synchronise files between two computers in a network that have been modified or created within the last 60 days?

View 3 Replies View Related

General :: Find All Files Modified In Date Range

Apr 30, 2010

I need to know all files modified within a date and time range.E.g: All modified files between 20 April 2010, 1100-1200 Hrs."find / -mtime +10 ! -mtime +11" :: this i found for date but how to include time as well.

View 2 Replies View Related

General :: Script To Display Modified Date&time Of Files?

May 31, 2010

I am using the following script to creates list of accessed files.I like to add modified date and time of accessed files in the output.

For this what needs to be added in the below script??

#!/bin/bash
#
# creates list of accessed files
#
set $(date)
find /hdc160GB/programmers/projects -cmin -1440 > /hdc160GB/programmers/data/fileschanged/alert_$6-$2-$3.txt

View 7 Replies View Related

Ubuntu :: Sequentially Number Files Based On Date Modified - Rename Cli

Nov 8, 2010

Sequentially number files based on date modified (rename cli)

I'm almost done a larger script which takes all the pictures in a folder, converts it to video, and emails it to me. Everything worked fine until I realized the picture filenames weren't always starting at 1, then ffmpeg chokes.

I have a bunch of files in a folder which I need to rename to:

I don't want to install any additional packages and I'd like this to run in a single command if possible.

If not possible, then a bash script would work too.

View 3 Replies View Related

Software :: Editing XMP Metadata In AVI Files?

Sep 9, 2010

finding a tool to edit XMP metadata in AVI files for Linux? I found that this XMP metadata editor can do it, but it's a Win only tool.

View 3 Replies View Related

Slackware :: Extracting Metadata From WAV Files?

Feb 6, 2011

Kernel 2.6.21.5, GNU/Linux (Slackware 12.0).

A tool to extract metadata from a WAV file and present it in human readable form?

View 4 Replies View Related

OpenSUSE Install :: "cannot Download Xxx Files" Or "the Files Have Been Modified And Is Danger To Use"

Nov 24, 2009

i downloaded and try installing opensuse 11.2 on my intel-based imac. but during installing, there keeps pop-up error messages either saying "cannot download xxx files" or "the files have been modified and is danger to use" i run the "check" function after burning .iso file. and it failed too.so what should i do now?

View 3 Replies View Related

Ubuntu :: Stop Thunderbird From Collecting Addresses?

Jul 25, 2010

Lucid 10.04...How do you stop Thunderbird from adding email addresses to the address book from all the newsletters I get?

View 2 Replies View Related

Hardware :: Collecting Information For Use In A Kernel Compile?

May 14, 2010

I would like to gather as much system information I can for my box so I can get a better understanding of what needs to be enabled in the kernel. Other than the lspci, lshw output, and knowledge of certain devices connected, does anyone have any other tips they could present me with? Unfortunately, I don't have access to the machine in interests manuals, and I know next to nothing about hardware.

View 3 Replies View Related

Ubuntu Security :: Faster Aircrack Packet Collecting?

Jul 8, 2010

I've just started learning how to use kismet and aircrack. I'm sniffing my own network to see how vulnerable it is. I'm using aireplay to inject packets, but the number of packets per second in airodump is only about 30 to 50. Is there something that can speed this up a little more? Shouldn't it be able to go faster than this? It's going to take forever to collect at least 300,000 IVs for a 64 WEP key let alone the amount needed for 128 WEP.

wireless card intel iwl3945. Everything works great except for the extremely slow speed of gathering IVs. Also, how can I monitor my network? If someone was using aircrack on me and sending packets, how could I observe that? What should I Google?

View 4 Replies View Related

Fedora :: Anaconda Has Modified A Partition That Is Now Unreachable?

Jul 31, 2009

I have a big pb after installing F11 : my partition containing all my photos is now unmountable. Before installing F11, it was in ext3 filesystem

During installing F11 on sda1 (first hard drive), I noticed some strange error messages like "volume doesn't exist" or something like that.

now, when I try to mount my partition of my third hard drive, i get this :

Code:
[root@vincent vincent]# mount /dev/sdc1 /home/vincent/sdc1
mount: type inconnu de systme de fichiers 'lvm2pv'
which means "mount: filesystem type unknown 'lvm2pv' "

[Code]......

View 10 Replies View Related

Red Hat / Fedora :: How To Find Out Who Has Modified/edited A File

Jan 27, 2011

I use RadHat Linu5.We usually log in to LINUX via putty (remote). Very often many people use the same user and password to log in.I wonder how to tell who has edited/modified a file?

View 9 Replies View Related

Fedora :: Cannot Retrieve Metadata For Repository

Aug 4, 2009

I did preupgrade from fc9 to fc11. I encountered with "an internal system error has occurred". It is keep on bugging even after closed. The details are as follows:

Traceback (most recent call last):
File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 2093, in get_distro_upgrades
pkgs = self.yumbase.pkgSack.returnNewestByName(name='preu pgrade')
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 649, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 491, in _getSacks
self.repos.populateSack(which=repos)
File "/usr/lib/python2.6/site-packages/yum/repos.py", line 260, in populateSack
sack.populate(repo, mdtype, callback, cacheonly)
File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 162, in populate
if self._check_db_version(repo, mydbtype):
File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 220, in _check_db_version
return repo._check_db_version(mdtype)
File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1178, in _check_db_version
repoXML = self.repoXML
File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1342, in <lambda>
repoXML = property(fget=lambda self: self._getRepoXML(),
File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 1338, in _getRepoXML
raise Errors.RepoError, msg
RepoError: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

View 2 Replies View Related

Fedora :: Cannot Retrieve Repository Metadata

Sep 12, 2009

i installed fedora 11 today and i am unable to update it whenever i try i get this message: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again both in yum update and in software update where can i get repmod.xml

View 14 Replies View Related

Fedora :: FC 11 - Yum Error: Can't Retrieve Repository Metadata?

Sep 22, 2009

I installed a fresh copy of FC11 and when I try to run yum install, I get:

Loaded plugins: refresh-packagekit
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora.

View 4 Replies View Related

Fedora :: Yum Error - Cannot Retrieve Repo Metadata

Dec 3, 2009

I'm getting the following error when I try to install anything with yum:
Code:
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again.
I tried editing /etc/yum.repos.d/fedora.repo and /etc/yum.repos.d/fedora-updates.repo, and also amending the host file as explained in this fix. [URL]. Still doesn't work. I am behind a proxy.

View 4 Replies View Related

Fedora Installation :: Can't Retrieve Repository Metadata?

Dec 15, 2009

i am trying to get fc12 up and running. have spent a lot of time reading posts about similar problems, but so far haven't found the right answer. this is what i get when i try to run yum update:

[root@Tex etc]# yum clean all
Loaded plugins: presto, refresh-packagekit
Cleaning up Everything
[root@Tex etc]# yum update
Loaded plugins: presto, refresh-packagekit
adobe-linux-i386

[Code]...

View 14 Replies View Related

Fedora :: Error: Cannot Retrieve Repository Metadata

Mar 11, 2011

Code:
http://linuxdownload.adobe.com/linux/i386/repodata/repomd.xml: [Errno 14] HTTP Error 403 : http://linuxdownload.adobe.com/linux/i386/repodata/repomd.xml
Trying other mirror.

Error: Cannot retrieve repository metadata (repomd.xml) for repository: adobe-linux-i386. Please verify its path and try again

View 14 Replies View Related

Fedora :: Error - Cannot Retrieve Repository Metadata

May 11, 2011

whenever I do a yum anything I get this example
[root@localhost ~]# yum groupinstall "Development Tools"
Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
Error: Cannot retrieve repository metadata (repomd.xml) for repository:
fedora. Please verify its path and try again

View 5 Replies View Related

Fedora :: F15 Update - Cannot Retrieve Repository Metadata

Jul 31, 2011

I tried to update via software center anddd with 'yum update' but it won't work for me, I get: Loaded plugins: langpacks, presto, refresh-packagekit ...

Error: Cannot retrieve repository metadata (repomd.xml) for repository: spotify. Please verify its path and try again.

Any way which would allow me to edit something to make the paths right or to even remove the spotify.

View 6 Replies View Related

Red Hat / Fedora :: Error: Cannot Retrieve Repository Metadata

Mar 17, 2010

I am on RHEL 5.4 and i installed rpmforge for dag repository but failed with error my redhat box get's internet through ccproxy and error is

[root@pendora ~]# yum update Loaded plugins: rhnplugin, security This system is not registered with RHN. RHN support will be disabled.

Could not retrieve mirrorlist http://apt.sw.be/redhat/el5/en/mirrors-rpmforge error was
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rpmforge. Please verify its path and try again

View 4 Replies View Related







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