9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I am attempting to find and copy the two most recently added files to a specific directory, that fit a specific format.
I was able to find the command to list the two most recently added files in directory: ls -1t | head -n 2 The command lists the two files names in a vertical list,... (11 Replies)
Discussion started by: mattkoz
11 Replies
2. Shell Programming and Scripting
Hey everyone,
I need to select all files that were added to a specific directory in the past 5 mins and copy them over to a different directory. I am using HP-UX OS which does not have support for amin, cmin, and mmin. B/c of this, I am creating a temp file and will use the find -newer command... (7 Replies)
Discussion started by: mattkoz
7 Replies
3. Red Hat
For Suppose, I have installed a package having files file1, file2 and file3. After installation, I removed the file "file3".
But "rpm -qf file3" is giving the package name, even file3 was not there. And also "rpm -ql package" is also displaying all 3 files.
How can i update rpm database about... (6 Replies)
Discussion started by: snreddy_gopu
6 Replies
4. Solaris
Currently have an issue were we use a script to load a security .dat key. The script was failing to load stating "Unable to open directory". I ssh'd into the server and performed an ls -la on the /cdrom directory. I show the usual cdrom0 but the directory on the cd should be key but is showing... (0 Replies)
Discussion started by: hypp1e
0 Replies
5. Solaris
Hi,
When I include a user to the secondary group "sys" GID=3 in Solaris 9 OS I'm not able to login. I get these error. The user home directory and the shell exists. Is this because of any security hardening.
# su - agent
No directory!
# su agent
su: No shell
# grep taddm /etc/passwd... (14 Replies)
Discussion started by: agent001
14 Replies
6. UNIX for Advanced & Expert Users
I am uploading files that need to be processed prior to uploading. I will put the files in a directory. My question is how can I write an easy process to kick off a script once a file has been added? Is there an easy way to determine if a file has been added to a directory?
Thanks (7 Replies)
Discussion started by: goodmis
7 Replies
7. UNIX for Dummies Questions & Answers
I am uploading files that need to be processed prior to uploading. I will put the files in a directory. My question is how can I write an easy process to kick off a script once a file has been added? Is there an easy way to determine if a file has been added to a directory?
Thanks (1 Reply)
Discussion started by: goodmis
1 Replies
8. UNIX for Advanced & Expert Users
I have to read one input file which will give me some tables info like TradeNo,MsgId,status etc...
I have read that TradeNo from that input file and then look for that trade no in the database table and in the database I have to update the columns for that particular trade which I am getting fron... (7 Replies)
Discussion started by: madaans
7 Replies
9. UNIX for Dummies Questions & Answers
I have windows Xp installed, and decided to install Solaris Sun Unix 10. The hard disk was previousely partitioned into 5 partition. C: = Win98 D = WinXP and e,f,g,h are applications and so on. When istalling Sun Unix, will all the drives be removed, or I will specify where to install it. Thanks... (5 Replies)
Discussion started by: sunsation
5 Replies
DBD(1) Netatalk 2.2 DBD(1)
NAME
dbd - CNID database maintenance
SYNOPSIS
dbd [-evx] {-d [-i] | -s [-c|-n] | -r [-c|-f] | -u} volumepath
DESCRIPTION
dbd can dump, scan, reindex and rebuild Netatalk dbd CNID databases. It must be run with appropiate permissions i.e. as root. dbd -s|-r
can be run on active volumes, but dbd -rf, which wipes the db before rebuilding it, checks and enforces that the chosen volume is not in
use.
COMMANDS
-d
Dump CNID database. With -i dump indexes too.
-s
Scan volume:
o Compare CNIDs in database with volume
o Test if .AppleDouble directories exist
o Test if AppleDouble files exist
o Report orphaned AppleDouble files
o Report directories inside .AppleDouble directories
o Check name encoding by roundtripping, log on error
o Check for orphaned CNIDs in database (requires -e)
o Open and close adouble files
Options:
-c Don't check .AppleDouble stuff, only check orphaned. -n Don't open CNID database, skip CNID checks, only traverse
filesystem
-r
Rebuild volume. With -f wipe database and rebuild from CNIIDs stored in AppleDouble files.
o Sync CNIDSs from database with volume
o Ensure .AppleDouble directories exist
o Ensure AppleDouble files exist
o Delete orphaned AppleDouble files
o Report directories inside .AppleDouble directories
o Check name encoding by roundtripping, log on error
o Delete orphaned CNIDs in database (requires -e)
o Open and close adouble files
Options:
-c Don't create .AppleDouble stuff, only cleanup orphaned.
-f Wipe database and rebuild from IDs stored in AppleDouble files, only available for volumes without nocnidcache option.
Implies -e.
-u
Upgrade:
Opens the database which triggers any necessary upgrades, then closes and exits.
OPTIONS
-e
Only work on inactive volumes and lock them (exclusive)
-x
Rebuild indexes (just for completeness, mostly useless!)
-v
verbose
WARNING
In order to be able to run -rf reconstructing the CNIDs in the database from the AppleDouble files, make sure you've run a -r rebuild
sometimes before, where the CNIDs then would have been synched between database and AppleDouble files.
Also be careful about the option nocnidcache. Avoid this option if at all possible, because if prevents you from being able to use -f.
CNID BACKGROUND
The CNID backends maintains name to ID mappings. If you change a filename outside afpd(8) (shell, samba), the CNID db will not know and not
reflect that change. Netatalk tries to recover from such inconsistencies as gracefully as possible. The mechanisms to resolve such
inconsistencies may fail sometimes, though, as this is not an easy task to accomplish. E.g. if several names in the path to the file or
directory have changed, things may go wrong.
If you change a lot of filenames at once, chances are higher that the afpds fallback mechanisms fail, i.e. files will be assigned new IDs,
even though the file hasn't changed.
SEE ALSO
cnid_metad(8), cnid_dbd(8)
Netatalk 2.2 12 Oct 2010 DBD(1)