10-17-2002
strange
The database is there... I am able to locate as root.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
i executed a script.
cat <filename> | grep <pattern> | awk '{print $1}' | read a
i get the answer when i execute it in the shell env (no problem with that)
as
./<name>.ksh
when i tried the same in cron (as an entry in cron)
value is not being read in the variable a through... (1 Reply)
Discussion started by: matrixmadhan
1 Replies
2. Shell Programming and Scripting
Good day.
I whant to put in a "readkey" function into my script. My script will be running in "real time". Basicaly I whant to add a eg. "Press X to exit" statement into my script. More or less like the read command, but I don't whant it to wait for the user to press enter. eg. Readkey. If no... (5 Replies)
Discussion started by: Blooper
5 Replies
3. AIX
Multipart question..
Can anybody explain why this happens :
-rw-rw-r-- 1 fnsw fnusr 1531061 Feb 13 21:45 filename1.log
-rw-rw-r-- 1 fnsw fnusr 1760706 Feb 10 22:10 filename2.log
-rw-rw-r-- 1 fnsw fnusr 1525805 Aug 16 2005 filename3.log
-rw-rw-r-- 1... (3 Replies)
Discussion started by: dbridle
3 Replies
4. Solaris
Hi all,
Thanks for any replies and for reading in advance.
We have upgraded one of our database instances to 10g on a Solaris 8 box, anyhow the other day it started trying to ping loads of weird IP addresses that we don't use, since our systems all run on pretty similar IP's. It all behind... (0 Replies)
Discussion started by: B14speedfreak
0 Replies
5. Shell Programming and Scripting
I am trying to read a file and skip few records based upon the following two columns. Pipe delimiter used between the two columns.
Column1|Column2
Property|CutOff
Target|11111
Min|9999
Max|10000
Comment|This is a test
Property|Weight
Target|222
Min|3434
Max|77777
UOM|mm ... (5 Replies)
Discussion started by: ganesh123
5 Replies
6. Shell Programming and Scripting
Right folks... this is probably something simple that I'm missing as it's early, but can anyone tell me what's going on here:
The Script:
cougar:/usr/hxscripts>vi ~/test.ksh
"/usr/home/branch/users/tech/test.ksh"
#!/bin/ksh
LOGDIR=/usr/hxscripts/LOGS/logmeoff/ # Logging directory,... (6 Replies)
Discussion started by: alexop
6 Replies
7. Shell Programming and Scripting
Can some-one give me a view to this :
I have a directory in an unix server, having permissions r-xr-xr-x .This directory is basically a source directory.
Now there is another directory basically the destination directory which has all the permissions.
Note:I log in as not the owner,but user... (5 Replies)
Discussion started by: navojit dutta
5 Replies
8. Solaris
Dear Solarizer,
Every time i log in to the sheel i always got this messages,
How to stop this messgaes permanently.
tpx@plood/export/home/ $ Jul 29 11:35:00 plood sendmail: unable to qualify my own domain name (plood) -- using short name
Jul 29 11:35:00 plood sendmail: unable to qualify... (3 Replies)
Discussion started by: tpx99
3 Replies
9. UNIX for Advanced & Expert Users
Can someone please explain why I get two outputs with the du command? The first one gave me one. I also didn't ask for the second directory so why did it give that directory?
$ du -h "/media/Part 1/Desktop/playlist"
775M /media/Part 1/Desktop/playlist
$ du -h "/media/Part... (1 Reply)
Discussion started by: cokedude
1 Replies
10. Solaris
Hi,
when i execute a df, look what such a strange numbers appear
Does anybody know why these numbers appear??? is it critical?? is there a way to mend it?
df -k
Filesystem kbytes used avail capacity Mounted on
/dev/md/dsk/d704 2033295 18446744073707800956 3722957... (3 Replies)
Discussion started by: pabloli150
3 Replies
LEARN ABOUT LINUX
updatedb
updatedb(8) System Manager's Manual updatedb(8)
NAME
updatedb - update a database for mlocate
SYNOPSIS
updatedb [OPTION]...
DESCRIPTION
updatedb creates or updates a database used by locate(1). If the database already exists, its data is reused to avoid rereading directo-
ries that have not changed.
updatedb is usually run daily by cron(8) to update the default database.
EXIT STATUS
updatedb returns with exit status 0 on success, 1 on error.
OPTIONS
The PRUNE_BIND_MOUNTS, PRUNEFS, PRUNENAMES and PRUNEPATHS variables, which are modified by some of the options, are documented in detail in
updatedb.conf(5).
-f, --add-prunefs FS
Add entries in white-space-separated list FS to PRUNEFS.
-n, --add-prunenames NAMES
Add entries in white-space-separated list NAMES to PRUNENAMES.
-e, --add-prunepaths PATHS
Add entries in white-space-separated list PATHS to PRUNEPATHS.
-U, --database-root PATH
Store only results of scanning the file system subtree rooted at PATH to the generated database. The whole file system is scanned
by default.
locate(1) outputs entries as absolute path names which don't contain symbolic links, regardless of the form of PATH.
--debug-pruning
Write debugging information about pruning decisions to standard error output.
-h, --help
Write a summary of the available options to standard output and exit successfully.
-o, --output FILE
Write the database to FILE instead of using the default database.
--prune-bind-mounts FLAG
Set PRUNE_BIND_MOUNTS to FLAG, overriding the configuration file.
--prunefs FS
Set PRUNEFS to FS, overriding the configuration file.
--prunenames NAMES
Set PRUNENAMES to NAMES, overriding the configuration file.
--prunepaths PATHS
Set PRUNEPATHS to PATHS, overriding the configuration file.
-l, --require-visibility FLAG
Set the "require file visibility before reporting it" flag in the generated database to FLAG.
If FLAG is 0 or no, or if the database file is readable by "others" or it is not owned by mlocate, locate(1) outputs the database
entries even if the user running locate(1) could not have read the directory necessary to find out the file described by the data-
base entry.
If FLAG is 1 or yes (the default), locate(1) checks the permissions of parent directories of each entry before reporting it to the
invoking user. To make the file existence truly hidden from other users, the database group is set to mlocate and the database per-
missions prohibit reading the database by users using other means than locate(1), which is set-gid mlocate.
Note that the visibility flag is checked only if the database is owned by mlocate and it is not readable by "others".
-v, --verbose
Output path names of files to standard output, as soon as they are found.
-V, --version
Write information about the version and licence of locate on standard output and exit successfully.
EXAMPLES
To create a private mlocate database as an user other than root, run
updatedb -l 0 -o db_file -U source_directory
Note that all users that can read db_file can get the complete list of files in the subtree of source_directory.
FILES
/etc/updatedb.conf
A configuration file. See updatedb.conf(5).
/var/lib/mlocate/mlocate.db
The database updated by default.
SECURITY
Databases built with --require-visibility no allow users to find names of files and directories of other users, which they would not other-
wise be able to do.
NOTES
The accompanying locate(1) utility was designed to be compatible to slocate and attempts to be compatible to GNU locate where possible.
This is not the case for updatedb.
AUTHOR
Miloslav Trmac <mitr@redhat.com>
SEE ALSO
locate(1), mlocate.db(5), updatedb.conf(5)
mlocate Jun 2008 updatedb(8)