update-mime-database(1) X Desktop Group update-mime-database(1)NAME
update-mime-database - a program to build the Shared MIME-Info database cache
SYNOPSIS
update-mime-database -h | -v | [ -V | -n ] MIME-DIR
DESCRIPTION
update-mime-database is a program which is responsible for updating the shared mime-info cache according to the system described in the
Shared MIME-Info Database specification <http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec> from the X Desktop Group.
OPTIONS -h Print out a command summary.
-v Print out the version information.
-V Be verbose.
-n Only update if MIME-DIR/packages/ or a file in that directory is newer than MIME-DIR/version. This is useful for package pre- and
post-installation scripts.
ARGUMENTS
MIME-DIR
This is the directory for which update-mime-database should rebuild the cache. Mandatory if none of the options is provided.
AUTHOR
Filip Van Raemdonck (mechanix@debian.org) wrote this manpage for the Debian GNU/Linux project, but it may be used by others.
LICENCE
Copyright (C) 2002 Thomas Leonard.
You may redistribute copies of update-mime-database under the terms of the GNU General Public License.
Filip Van Raemdonck 26 Jul 2002 update-mime-database(1)
Check Out this Related Man Page
DH_INSTALLMIME(1) Debhelper DH_INSTALLMIME(1)NAME
dh_installmime - install mime files into package build directories
SYNOPSIS
dh_installmime [debhelperoptions] [-n]
DESCRIPTION
dh_installmime is a debhelper program that is responsible for installing mime files into package build directories.
It also automatically generates the postinst and postrm commands needed to interface with the debian mime-support and shared-mime-info
packages. These commands are inserted into the maintainer scripts by dh_installdeb(1).
FILES
debian/package.mime
Installed into usr/lib/mime/packages/package in the package build directory.
debian/package.sharedmimeinfo
Installed into /usr/share/mime/packages/package.xml in the package build directory.
OPTIONS -n, --noscripts
Do not modify postinst/postrm scripts.
NOTES
Note that this command is not idempotent. dh_prep(1) should be called between invocations of this command. Otherwise, it may cause multiple
instances of the same text to be added to maintainer scripts.
SEE ALSO debhelper(7)
This program is a part of debhelper.
AUTHOR
Joey Hess <joeyh@debian.org>
8.9.0ubuntu2.1 2012-06-12 DH_INSTALLMIME(1)
Hi,
This Script contains update statements and running without error.
But the update result is not getting reflected in the database. i.e may be Script fails to connect to the database.
it would be of great help if you could figure out the problem.
Thanks,
Shruti
Script follows here:... (5 Replies)
Hi,
I am using the following command to extract any log files that are older than 3 days using the following command.
find DIR/LOGDIR -type f -mtime +3 |grep LOG > log_list.out
The results are
DIR/LOGDIR/1.LOG
DIR/LOGDIR/2.LOG
DIR/LOGDIR/3.LOG
DIR/LOGDIR/4.LOG
How do inculde (basename... (4 Replies)
We have a large number of oracle database related scripts that utilize the environment variables $ORACLE_SID and $DBNAME. In a single instance database the $ORACLE_SID is the same as the database name $DBNAME. So we have simply set DBNAME = $ORACLE_SID. However, now that we are clustering with RAC,... (5 Replies)
Hi:
I have writed a script that read a HTML file and convert this in a multipart mime fail to send in a mail.
But the result isn't interpreted lika a mime file!!
Somebody can see the error???
---------------------------
#! /bin/bash
SB=$1
IF=$2
OF=$3
rm -f $OF.b64
... (7 Replies)
First i need to find all scripts directly under /DIR that end with ".sh" extension except "noallow.sh". That can be done with:
find /DIR -maxdepth 1 -name "*.sh"|grep -v "noallow.sh"
Now i want to run all the files output from the previous command.
The following code:
for filename in... (6 Replies)
Hi,
I have been assigned a job which requires me to send mails from unix(Mailx) upon on certain actions triggered in the database.
On insert/update of a certain field into one of the database tables the shell script present in Unix box responsible to send mail though mailx needs to be triggered... (7 Replies)
Hello
Would you tell me how to find which program that update a specific file?
I am implementing migration project.
My machines OS are AIX.
It is because lack of documentation, some program cannot working properly on new machine.
We found the root cause of this problem is that some data... (4 Replies)
About 10 years ago I got into K shell scripting in a big way (for a beginner). I absolutely loved it and wrote a number of database maintenance scripts that, while basic, worked extremely well.
Somehow, somewhere I picked up the style of scripting that was very similar to when I was doing Cobol... (4 Replies)
Hi,
I have the following requirement:
I have load_cdr as main scriptwhich loads all the file records into vertica database through unix script. But there are two files which try to update same table..n thats y my script is getting failed...
Can any1 give me some logic how to over come this... (6 Replies)
Right I have a MYSQL database with table1 with 3 columns, colA, colB and colC. I want to combine the data in the 3 columns into a 4th column names col_comb. Here's the SQL command that works:
UPDATE table1 SET `col_comb` = CONCAT( `colA` , ' - ', `colB` , ', ', `colC` );
So now I want this... (5 Replies)
i have a o/p from find command that needs to be formatted
currently when i'm running
find . -name "v.info"
it is giving below o/p
/o/a/b/c/v.info
/o/a/b/c/d/v.info
/o/aa/bb/cc/v.info
/o/aa/bb/cc/dd/v.info
my requirement is if v.info is coming under sub-directories it shul be... (15 Replies)
If there were 3 files put in a folder on /Desktop/Test then transferred to a site.
would
gzip -r /Desktop/Test zip them so that
wget --http-user cmccabe --http -passwd xxxx*** https://something.sharefile.com/login.aspx -O - | tar -zxf - could be used to connect to the site, login,... (6 Replies)
Hello everybody,
:wall:I am new to Linux and I want to create a simple script on Ubuntu that will allow to make database with a few perimeters.
create file and name it Database and complete it with any information
id firstname lastname phone
0
1
2
3
4
... (4 Replies)
Im trying to update an informix database table for each occurance of a head_barcode in a file called mw within a for loop
please see below - cant get the syntax correct. any help please?
for a in `cat /tmp/mw`
do
sql image - << STOP > /dev/null 2>&1
update doc_table set status =... (4 Replies)