Ubuntu :: Find Files With An Extension, Then Mail The Results?
Jul 2, 2011
Is there an easy way to do a recursive command line search on a path for a particular type of file extension?I want to build a script that will check for the existence of any .xxx files in a recursive path, if they exist, I would like to run the "mail" command to send me a message. I already have mail running on he server.My thoughts were to tryQuote:ls -R |grep .iniorQuote:find . |grep .inibut neither of those return only the .ini files, they also return files that are named such as .ini.bak, .ini.original, .ini.old, ect...
View 2 Replies
ADVERTISEMENT
Feb 3, 2011
i want to find all files with .h or .c extension and print them on the screen. How can i do it with bash script programming?
View 5 Replies
View Related
Apr 18, 2011
I need little help. I want to find all files with extension "*.tar" "*.gz" and "*.zip" and move all those files into "/opt/old" directory. I've tried this command:
Quote:
find . -type f -name "*.tar" "*.gz" "*.zip" -print0 | xargs -0 -r mv /opt/test
It's not working, something wrong after "mv" i guess.
View 10 Replies
View Related
Aug 1, 2010
- Firefox 3.6.8 (64 bit)
- Get Mail extension (v3.3.4),
- Thunderbird (3.1.1)
Problem:
Clicking "Read Mail" does nothing, whereas clicking "Compose Message" opens Thunderbird as expected. Thunderbird is properly configured under "System Settings > Default Apps > Email Client".
Whereas, switching the default email client back to Kmail results in the Get Mail "read mail" and "compose message" functions properly opening Kmail in both instances.
This problem occurred for me before (when using openSUSE v11.1 and earlier versions of the apps), but I don't recall how I eventually solved it, or whether it was resolved via an update of one of the above apps/extensions. Nonetheless, I'm now confronted by the very same problem again.
View 5 Replies
View Related
Jul 16, 2010
how to include my command results in a script? Basically what the script does is it checks the status of a service within the linux server, then sends an email when done. I want to include the results of my status check to my mail when sent.
i.e.
service dhcp3-server status Status of DHCP server: dhcpd3 is running. <---this I want to include in the mail that is sent out via script.
View 6 Replies
View Related
Apr 30, 2011
So when I press Super + F I get "Search Files & Folders" but I don't get any results when I search for files/folders I know are in my home folder.
Am I missing something, do I need to install any other packages for this to work?
View 2 Replies
View Related
Sep 21, 2010
how to convert mp3 files into files with the m4a extension? Need to get music files to be recognized by my DSi.
View 4 Replies
View Related
Jun 22, 2011
I am trying to learn about macros in libreoffice. In order to see the methods and properties of the different objects, people in the openoffice forums recommend using the MRI library.
I can not find any reference to the MRI extension in fedora. Does anyone know how to find it, or what to use instead?
View 1 Replies
View Related
Aug 12, 2010
Code:
$ ls -l
-rw-r--r-- 1 username vuser 35553 Aug 9 18:15 note.20100809_1815.sql
[code]....
View 3 Replies
View Related
Jun 7, 2011
so I was wondering how I could do a simple find which would order the results by most recently modified. Here is the current fine I am using. (I am doing a shell escape in php, so that is the reasoning for the variables. find '$dir' -name '$str'* -print | head -10
How could I have this order the search by most recently modified. (Note I do not want it to sort 'after' the search, but rather find the results based on what was most recently modified)
View 4 Replies
View Related
Jan 22, 2010
I wanted to supply mplayer with the output of find command as arguments. The error returned showed spliced names of files whenever spaces occurred. I have subdirectories in my /home/my_user_name/Music/ directory, and in them multiple *.oga music files. The actual command that I issued was
Code:
mplayer $(find /home/my_user_name/Music/ -name "*.oga")
mplayer started but then was looking for broken file names. I am thinking quoting has to do with it to preserve the filename as one string but different attempts were met with inroads:
Code:
mplayer `find /home/my_user_name/Music/ -name "*.oga"`
gave me the same result and
Code:
mplayer `"find /home/my_user_name/Music/ -name *.oga"`
complained about wrong mplayer syntax.
View 1 Replies
View Related
Aug 12, 2010
I'm trying to do a
find /photos/* -type f -mtime +365
to find all my pictures that are over a year old, but I keep getting argument list too long. How can I view what all the results are, even if it just dumps it to a file that I have to open?
View 12 Replies
View Related
Mar 18, 2010
I have lot of problems installing red5 video server, on my VPS.First things first, here is the specs of my VPS:
OS: CENTOS 5.4 i686 virtuozzo on server
Administration: cPanel 11.25.0-S43473 - WHM 11.25.0 - X 3.9
Mysql: 5.0.89-community
PHP: 5.2.10
Apache 2.2.11
Saying that, I will try to explain my problem as detailed as possible:I try to install red5 video server, following the tutorials and guides to do that, but there are some prerequisites to fulfill before installing the program:
Prerequisite No.1.: Having the latest version of Apache ANT.
Prerequisite No.2: Having the latest Java devel version.
The server already got the Apache ANT 1.6, but red5 asks for 1.8 The server already got java 1.5 but red5 asks for 1.6 So, I try to update to ANT 1.8 and Java 1.6, but refuses to update, so I made a clean installation of both, doing this:[URL]
JAVA:
# yum -y install java-1.6.0-openjdk java-1.6.0-openjdk-devel
Then I install Apache ANT doing this:
# cd /usr/src
# wget http://opensource.become.com/apache/...8.0-bin.tar.gz
# tar zxvf apache-ant-1.8.0-bin.tar.gz
# mv apache-ant-1.8.0 /usr/local/ant
[code]....
Then, when I execute the command: ant -version to find out which version is running, I get more errors:
root@server [~]# ant -version
/usr/bin/build-classpath: error: Could not find xml-commons-apis Java extension for this JVM
/usr/bin/build-classpath: error: Some specified jars were not found
[code]...
Also, the VPS is not resolving the domains properly, prior to this, the domains were fine, but after that, I need to do a gracefull reboot, and then restart the named service.
1.- How can I undo all the things I did, I mean, is it a way to uninstall the APACHE ANT 1.6.5 and then the 1.8 and Java 1.6, and then start from the beginning?
2.- After uninstalling these 3 apps, I need to reinstall it properly, and make red5 work on the server, so, how can I do it safely?
A mistake I did, was to not to backup the server prior to make the changes, and is a production VPS on a shared server with the vpsnext.com hosting provider.I speak with the technical support, and they are not be able to help me, because is an unmanaged server.
One more strange thing is that, I already install red5, with ANT and JAVA in another server, with the same specs of this VPS, from another hosting provider, and I had no problems at all.
View 6 Replies
View Related
Jul 27, 2010
I have setup a postfix mailserver and it seems to be working ok, we are only using this to relay mail to our forum users. Its not being used to recieve any email only send them out to the internet.
What is the difference between the mail.log and mail.info files? Can I turn one or both off? I see alot of messages like...
Just wondering what this string of log entries means? Also I am getting duplicates in the syslog file as well.
View 2 Replies
View Related
Jan 28, 2010
I cannot get exim4 to actually deliver any "local delivery only; not on a network".But whatever I do in the config, all mail gets frozen with entries in the log file like:"root@empty R=nonlocal: Mailing to remote domains not supported"Maybe the problem is that there is no fqdn for the computer (and will never be). How can I enable local mail delivery?
View 14 Replies
View Related
Feb 20, 2010
If I do something to the effect of this:ldapsearch -b "dc=example,dc=com" -x -z 3000
I'll get this back at the end of the result set:
# search result
search: 2
result: 4 Size limit exceeded
The thing is is that I have way more (thousands) than what's being displayed here. And I've tried to mess around with /etc/ldap.conf, changing the SIZELIMIT directive to something else, 10000, let's say, and restarting the server, but the same goddamn thing happens.
I've been messing around with this for quite some time now, hopefully someone will be able to shed some light on this so that I can learn my way out of this mess that is LDAP. Also in a related matter, I'm running Mint (based off of Ubuntu), and all the documentation that I've seen (probably read a good 100+ pages in a few days now on this) keeps telling me to make changes to my slapd.conf file. What slapd.conf file? It doesn't exist, I can't find it at least. find / -name slapd.conf turns up nothing.
View 10 Replies
View Related
May 8, 2011
any utility to search for a file of a particular extension like search for all .txt files only
View 1 Replies
View Related
Oct 12, 2010
I have to administer a few mail servers, a mail log server, 4 nameservers and a web server -all running on Centos 5 server distributions. Now I have a task: to avoid accidental crashes on the production servers while installing updates, my boss asked me to do clones (these clones will all be VMware virtual machines) of the servers (EXCLUDING the actual e-mails and mail log contents) and then to run those clones on VMWare Server. This way, first I will install and test updates on the clones and - if they will be running without crashes - I will apply the updates on the real production servers themselves. I have already installed VMWare Server 2.0 I have a few questions:
- How do I build the virtual machines to exclude the actual mail files and mail logs? Can I use VMware Converter for this purpose, or do I have to use another program?
- How do I actually do this cloning? Is there a tutorial on how to do this?
View 3 Replies
View Related
Oct 30, 2010
How can I split my local mail box into an individual files for each mail. The senario of mine is I fetch some emails from a mail server into my local linux box with fetchmail command but I want each fetched mail in a different indivitual file for easy file processing and manipulation for example sending those email through sms and so on
View 1 Replies
View Related
Mar 8, 2010
I want to search a Windows partition for all .doc and .xls files and move them over to Xubuntu to burn them to CD.
Is this easiest to do via terminal? I tried to use catfish and select all files, but I think my Mac keyboard (and USA standard keyboard settings) threw the select all files ability.
View 4 Replies
View Related
Oct 12, 2010
i am using ubuntu 8.04 and am trying to install a file with a .bin extension so opened the terminal and typed ($ chmod +x typingmastermac.bin )then the computer gave me this (bash: $: command not found). so i am not aware what to do next though most articles i have read about the topic tell me that that is supposed to be the first step in installing a file with a .bin extension. better way to install the typingmastermac.bin file.
View 12 Replies
View Related
Nov 18, 2010
I'm doing a project in Unix version Ubuntu 10.04. I'm doing an standalone app using C++(Qcreator) and GMT(generic mapping tool) so i need help in the following: how to invoke any extension files using C++?
View 1 Replies
View Related
May 14, 2011
I am using Files and Folders search application in Ubuntu 11 recent version. App that shows up on side. However I am not sure how clean its search result. I do not see any option.
View 2 Replies
View Related
Jul 21, 2011
I downloaded a couple of TTA files and they are just static on playback. Do I need a different codec or something? Converting the files to FLAC yielded the same results. I'm running a 10.04 64bit machine.
View 9 Replies
View Related
May 22, 2011
I (for curiosity's sake) am running du -a inside /usr/lib/git-core and it does not show results for all the files in that directory. Why does it leave out an arbitrary set of files?this is what cd /usr/lib/git-core; du -a returns:
4 ./git-merge-resolve
972 ./git-config
12 ./git-show-index
[code]....
View 1 Replies
View Related
Apr 21, 2010
I'm a relative cli noob, and I screw something up. I want to remove some files by extension only, going down several folders, while leaving everything else be.I think this might be the the right command / syntax, can someone confirm:Code:rm -rf *.exe *.ini *.!ut /path/
View 9 Replies
View Related
Jul 26, 2010
I basically want to transfer firefox settings from one machine to another (or from one user to another) which includes some extensions. Instead of running the browser and installing the extension manually, I just want to copy and paste the relevant files.
I noticed that the folder name where the 'extensions' folder is present is different for different users. And just copying to that folder does not work. code...
I'm guessing there are other configuration files that I need to modify. Can someone tell me right way to go about this?
View 1 Replies
View Related
Sep 16, 2010
I recovered some 60,000 files with PhotoRec and need a script to sort them into individual folders based on extension. I was able to do this once before but cannot find the script again (sad thing is that I probably saved it on another HD that I'm having partition issues with, but that's another story....).I found this script:
Code:
#!/bin/dash
mkdir "$1"
for file in *.$1; do
mv "$file" "$1"
done
While it does work, I am not looking forward to going through all 132 folders and typing in each extension. The last time I did it, the folder was automatically created based on the extension(s) found.
View 6 Replies
View Related
Jan 19, 2011
how to go about extracting the .inf, .sys. and any .bin files from a driver. I found the windows driver for my laptop on the HP website, but it is a .exe file. How do I find the correct file?I am using the Broadcom BCM4312 chipset, on Ubuntu Maverick 10.10 unity 32bit.
View 1 Replies
View Related
May 30, 2011
I got around 6,000 songs that I copied from my ipod to my external hard drive through rhythmbox, but for some reason it didn't copy over any extensions (all of my music files are mp3's) so I was wondering what would be a really simple way to add the extension to all the files in the music folder. My folders are setup like /Music/Artist/Album/song.mp3 (well right now there is no .mp3 but ya get the point
View 4 Replies
View Related