Re: utility to compare 2 dir trees

2013-01-03 Thread Fbsd8
Adam Vande More wrote: On Mon, Dec 31, 2012 at 8:39 PM, Fbsd8 wrote: ended up trying cd dir-tree1 mtree -c | mtree -p dir-tree2 Now this seems like it worked, except every thing was flagged for non-matching modification time. How do I tell it to not check modification time? mtree -c -k

Re: utility to compare 2 dir trees

2013-01-01 Thread Adam Vande More
On Mon, Dec 31, 2012 at 8:39 PM, Fbsd8 wrote: > ended up trying > cd dir-tree1 > mtree -c | mtree -p dir-tree2 > > Now this seems like it worked, except every thing was flagged for > non-matching modification time. How do I tell it to not check modification > time? >

Re: utility to compare 2 dir trees

2012-12-31 Thread Matthew Seaman
On 01/01/2013 01:23, Fbsd8 wrote: > I want to compare 2 different directory trees to each other to locate > any differences in directories and files contained there in. > > Any suggestions? diff -ru directory1 directory2 Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP:

Re: utility to compare 2 dir trees

2012-12-31 Thread Robert Bonomi
> From owner-freebsd-questi...@freebsd.org Mon Dec 31 19:26:37 2012 > Date: Mon, 31 Dec 2012 20:23:33 -0500 > From: Fbsd8 > To: FreeBSD Questions > Subject: utility to compare 2 dir trees > > I want to compare 2 different directory trees to each other to locate

Re: utility to compare 2 dir trees

2012-12-31 Thread Fbsd8
archy rooted in the current directory against a specification read from the standard input. Messages are written to the standard output for any files whose characteristics do not match the specifications, or which are missing from either the file hierarchy or the specification. Erich So cd dir-

Re: utility to compare 2 dir trees

2012-12-31 Thread Fbsd8
n the current directory against a specification read from the standard input. Messages are written to the standard output for any files whose characteristics do not match the specifications, or which are missing from either the file hierarchy or the specification. Erich So cd dir-tree1 mtree -

Re: utility to compare 2 dir trees

2012-12-31 Thread Erich Dollansky
Hi, On Mon, 31 Dec 2012 20:45:39 -0500 Fbsd8 wrote: > Adam Vande More wrote: > > On Mon, Dec 31, 2012 at 7:23 PM, Fbsd8 > > wrote: > > > >> I want to compare 2 different directory trees to each other to > >> locate any differences in directories and files contained there in. > >> > >> Any sugg

Re: utility to compare 2 dir trees

2012-12-31 Thread Fbsd8
Adam Vande More wrote: On Mon, Dec 31, 2012 at 7:23 PM, Fbsd8 wrote: I want to compare 2 different directory trees to each other to locate any differences in directories and files contained there in. Any suggestions? mtree(8) From the man page I don't see how to code mtree to compare 2

Re: utility to compare 2 dir trees

2012-12-31 Thread Adam Vande More
On Mon, Dec 31, 2012 at 7:23 PM, Fbsd8 wrote: > I want to compare 2 different directory trees to each other to locate any > differences in directories and files contained there in. > > Any suggestions? > mtree(8) -- Adam Vande More ___ freebsd-questi

utility to compare 2 dir trees

2012-12-31 Thread Fbsd8
I want to compare 2 different directory trees to each other to locate any differences in directories and files contained there in. Any suggestions? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-quest

Re[2]: cksum entire dir??

2012-10-05 Thread Австин Ким
Thu, 4 Oct 2012 22:28:03 -0400 от Mike Jeays : > > "rsync --dry-run" may be a simple solution that would meet your needs? You > might need to add the "--delete" option. > > Take another look at man rsync. Yeah, that's exactly what I was looking for! Or to be precise: rsync -acinv --de

Re: cksum entire dir??

2012-10-04 Thread Mike Jeays
remote systems > (apart from doing a one-way sync with _rsync_), but here's my two bits, a > quick crack at a shell function to check recursively that the contents of two > directories (and the filenames contained therein) have a high probability of > being in sync: > > #

Re: cksum entire dir??

2012-10-04 Thread Австин Ким
ation between corresponding directories on remote systems (apart from doing a one-way sync with _rsync_), but here's my two bits, a quick crack at a shell function to check recursively that the contents of two directories (and the filenames contained therein) have a high probability of being i

Re: cksum entire dir??

2012-09-14 Thread Karl Vogel
>> On Thu, 13 Sep 2012 23:35:22 -0400, kpn...@pobox.com said: K> But in both your and my code the uniq will frequently fail because the K> input is not sorted. No, check the first command: me% find . -type f -print0 | xargs -0 md5 -r | sort >> /tmp/sig1

Re: cksum entire dir??

2012-09-14 Thread C. P. Ghost
On Thu, Sep 13, 2012 at 9:18 PM, Karl Vogel wrote: > Here's a simple, system-independent way to find duplicate files. All you There's also sysutils/samefile: http://www.schweikhardt.net/samefile/index.html -cpghost. -- Cordula's Web. http://www.cordula.ws/ ___

Re: cksum entire dir??

2012-09-13 Thread Waitman Gobble
eebsd-questions-unsubscr...@freebsd.org" > Hi, But what happens when, like in my 'md5 file' tinkering example above, there's one or more identical files along the path which may or may not exist in both hierarchies? For example, the BSD License file. In my previous message I p

Re: cksum entire dir??

2012-09-13 Thread Polytropon
dev/rfd0 refers to fd - floppy disk. Even though I know there are floppy-controller connected tape drives (still have one myself!), the examples shown seem to indicate work with a floppy disk, used in a "non-fs'ed" manner, just as I did in the past with "tar, the most universal

Re: cksum entire dir??

2012-09-13 Thread Karl Vogel
Here's a simple, system-independent way to find duplicate files. All you need is something to generate a digest you trust (MD5, SHA1, whatever) plus normal Unix stuff: awk, expand, grep, join, sort, and uniq. Generate the signatures: me% cd ~/bin me% find . -type f -print0 | xargs -0 md5 -r

Re: cksum entire dir??

2012-09-13 Thread Gary Kline
On Thu, Sep 13, 2012 at 10:23:47AM +0200, Jonathan McKeown wrote: > On Wednesday 12 September 2012 22:29:45 Gary Kline wrote: > > > how, with mtree, could I tell whether dir1 == dir2 or not? > > From the manpage: > > ``The mtree utility compares the file hierarchy rooted in the > current di

Re: cksum entire dir??

2012-09-13 Thread markham breitbach
012 14:47:04 -0700 >>> From: Gary Kline >>> Subject: Re: cksum entire dir?? >>> >>> On Wed, Sep 12, 2012 at 10:55:57AM -0700, Waitman Gobble wrote: >> [sneck] >>>> are you sure it's not 'md5sum' ? ... that seems to be on all my &

Re: cksum entire dir??

2012-09-13 Thread Jonathan McKeown
On Wednesday 12 September 2012 22:29:45 Gary Kline wrote: > how, with mtree, could I tell whether dir1 == dir2 or not? From the manpage: ``The mtree utility compares the file hierarchy rooted in the current directory against a specification read from the standard input. Messages are writ

Re: cksum entire dir??

2012-09-12 Thread Waitman Gobble
mailing list > > > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > > > To unsubscribe, send any mail to " > > > freebsd-questions-unsubscr...@freebsd.org" > > > o > > > where, Sir, is the header?! > >

Re: cksum entire dir??

2012-09-12 Thread Gary Kline
On Wed, Sep 12, 2012 at 08:17:16PM -0500, Robert Bonomi wrote: > > > Date: Wed, 12 Sep 2012 14:47:04 -0700 > > From: Gary Kline > > Subject: Re: cksum entire dir?? > > > > On Wed, Sep 12, 2012 at 10:55:57AM -0700, Waitman Gobble wrote: > > > > [sne

Re: cksum entire dir??

2012-09-12 Thread Gary Kline
On Wed, Sep 12, 2012 at 05:42:43PM -0700, Waitman Gobble wrote: > On Wed, Sep 12, 2012 at 5:32 PM, Gary Kline wrote: > > > On Wed, Sep 12, 2012 at 03:58:00PM -0700, Waitman Gobble wrote: > > > On Wed, Sep 12, 2012 at 3:22 PM, Gary Kline wrote: > > > > > > > On Wed, Sep 12, 2012 at 02:31:16PM -04

Re: cksum entire dir??

2012-09-12 Thread Robert Bonomi
> Date: Wed, 12 Sep 2012 14:47:04 -0700 > From: Gary Kline > Subject: Re: cksum entire dir?? > > On Wed, Sep 12, 2012 at 10:55:57AM -0700, Waitman Gobble wrote: > > [sneck] > > > > are you sure it's not 'md5sum' ? ... that seems to be on all my &g

Re: cksum entire dir??

2012-09-12 Thread Waitman Gobble
On Wed, Sep 12, 2012 at 5:32 PM, Gary Kline wrote: > On Wed, Sep 12, 2012 at 03:58:00PM -0700, Waitman Gobble wrote: > > On Wed, Sep 12, 2012 at 3:22 PM, Gary Kline wrote: > > > > > On Wed, Sep 12, 2012 at 02:31:16PM -0400, Mike Jeays wrote: > > > > On Wed, 12 Sep 2012 10:55:57 -0700 > > > > Wai

Re: cksum entire dir??

2012-09-12 Thread Gary Kline
On Wed, Sep 12, 2012 at 03:58:00PM -0700, Waitman Gobble wrote: > On Wed, Sep 12, 2012 at 3:22 PM, Gary Kline wrote: > > > On Wed, Sep 12, 2012 at 02:31:16PM -0400, Mike Jeays wrote: > > > On Wed, 12 Sep 2012 10:55:57 -0700 > > > Waitman Gobble wrote: > > > > > > > On Wed, Sep 12, 2012 at 10:46

Re: cksum entire dir??

2012-09-12 Thread Gary Kline
On Wed, Sep 12, 2012 at 11:39:46PM +0100, RW wrote: > On Wed, 12 Sep 2012 14:47:04 -0700 > Gary Kline wrote: > > > On Wed, Sep 12, 2012 at 10:55:57AM -0700, Waitman Gobble wrote: > > > > are you sure it's not 'md5sum' ? ... that seems to be on all my > > > GNU/Linux machines. > > > > > > Waitma

Re: cksum entire dir??

2012-09-12 Thread Waitman Gobble
On Wed, Sep 12, 2012 at 3:22 PM, Gary Kline wrote: > On Wed, Sep 12, 2012 at 02:31:16PM -0400, Mike Jeays wrote: > > On Wed, 12 Sep 2012 10:55:57 -0700 > > Waitman Gobble wrote: > > > > > On Wed, Sep 12, 2012 at 10:46 AM, Gary Kline > wrote: > > > > [[ ...]] > > > > My Linux system has

Re: cksum entire dir??

2012-09-12 Thread RW
On Wed, 12 Sep 2012 14:47:04 -0700 Gary Kline wrote: > On Wed, Sep 12, 2012 at 10:55:57AM -0700, Waitman Gobble wrote: > > are you sure it's not 'md5sum' ? ... that seems to be on all my > > GNU/Linux machines. > > > > Waitman Gobble > > San Jose California USA > > > > yup, you be right

Re: cksum entire dir??

2012-09-12 Thread Gary Kline
On Wed, Sep 12, 2012 at 02:31:16PM -0400, Mike Jeays wrote: > On Wed, 12 Sep 2012 10:55:57 -0700 > Waitman Gobble wrote: > > > On Wed, Sep 12, 2012 at 10:46 AM, Gary Kline wrote: > > [[ ...]] > > My Linux system has both md5sum and md5deep. They give the same result, > except that md5

Re: cksum entire dir??

2012-09-12 Thread Gary Kline
o generate signatures, sort the signature file by the hash, and >then get the hash value of the signature file. Here's an example using >my bin directory: > > me% ls > aline dir histmakecfg mx ro > authlog di

Re: cksum entire dir??

2012-09-12 Thread Waitman Gobble
On Wed, Sep 12, 2012 at 2:47 PM, Gary Kline wrote: > On Wed, Sep 12, 2012 at 10:55:57AM -0700, Waitman Gobble wrote: > > On Wed, Sep 12, 2012 at 10:46 AM, Gary Kline wrote: > > > > > On Wed, Sep 12, 2012 at 07:31:45AM +0100, Matthew Seaman wrote: > > > > On 12/09/2012 00:14, Polytropon wrote: >

Re: cksum entire dir??

2012-09-12 Thread Gary Kline
On Wed, Sep 12, 2012 at 10:55:57AM -0700, Waitman Gobble wrote: > On Wed, Sep 12, 2012 at 10:46 AM, Gary Kline wrote: > > > On Wed, Sep 12, 2012 at 07:31:45AM +0100, Matthew Seaman wrote: > > > On 12/09/2012 00:14, Polytropon wrote: > > > > % cksum > > > > > > > > and could obtain a checksum

Re: cksum entire dir??

2012-09-12 Thread Gary Kline
On Wed, Sep 12, 2012 at 09:12:58AM +0200, Jonathan McKeown wrote: > On Wednesday 12 September 2012 08:31:45 Matthew Seaman wrote: > > On 12/09/2012 00:14, Polytropon wrote: > > > % cksum > [snip] > > > > That will give you a checksum on the directory inode -- file names and > > associated metada

Re: cksum entire dir??

2012-09-12 Thread Mike Jeays
/dev/rfd0 > > > > > >The flags -i and -o indicate copy-in or extract mode and > >copy-out or create archive mode. The ``c'' tells cpio > >to use the old, portablr ASCII archive format. And the > >``d'' flag tell

Re: cksum entire dir??

2012-09-12 Thread Karl Vogel
iles, use the hash of your choice to generate signatures, sort the signature file by the hash, and then get the hash value of the signature file. Here's an example using my bin directory: me% ls aline dir histmakecfg mx ro authlog disk

Re: cksum entire dir??

2012-09-12 Thread Waitman Gobble
necessary. > >Do a > >% man cpio > >for much greater detail on this utility. > > - > > There are another one or two of the simpler Q/A's and one or two > more involved. > > Then, for this month only, I want to write a paragraph

Re: cksum entire dir??

2012-09-12 Thread Gary Kline
Next month we get a break!! -- Gary D. Kline kl...@tao.thought.org Public service uNix as you can see, this dealt with my olden tape drive. a 250meg QIC drive, I think.but this was about the earliest reference I could find re my u

Re: cksum entire dir??

2012-09-12 Thread Waitman Gobble
anything that can compare entire dirs, it looks like > > > it's time to hack a small program. tx, polyt. > > > > Unix was originally created to do text manipulation. No need for a new > > program when you can do it from the command line. > > > > cd

Re: cksum entire dir??

2012-09-12 Thread Matthew Seaman
On 09/12/12 08:12, Jonathan McKeown wrote: >> Generally I find the best test for differences between old and new >> > copies of a filesystem is 'rsync -avx -n ...' > Wouldn't suitable applications of mtree(8) also do what's wanted? TIMTOWTDI. Cheers, Matthew __

Re: cksum entire dir??

2012-09-12 Thread Jonathan McKeown
On Wednesday 12 September 2012 08:31:45 Matthew Seaman wrote: > On 12/09/2012 00:14, Polytropon wrote: > > % cksum [snip] > > That will give you a checksum on the directory inode -- file names and > associated metadata only, not file content. [snip] > Generally I find the best test for differe

Re: cksum entire dir??

2012-09-11 Thread Matthew Seaman
On 12/09/2012 00:14, Polytropon wrote: > % cksum > > and could obtain a checksum - so it _seems_ to work. > After alteration of one file within the hierarchy a > different result was printed. That will give you a checksum on the directory inode -- file names and associated metadata only, n

Re: cksum entire dir??

2012-09-11 Thread Gary Kline
On Tue, Sep 11, 2012 at 09:55:33PM -0500, Robert Bonomi wrote: > > > Date: Tue, 11 Sep 2012 17:24:08 -0700 > > From: Gary Kline > > Subject: Re: cksum entire dir?? > > > > On Wed, Sep 12, 2012 at 01:14:43AM +0200, Polytropon wrote: > > > On Tue, 11

Re: cksum entire dir??

2012-09-11 Thread Gary Kline
t manipulation. No need for a new > program when you can do it from the command line. > > cd dir1 ; cksum * | sort > /tmp/dir1-cksum > cd dir2 ; cksum * | sort > /tmp/dir2-cksum > > diff /tmp/dir?-cksum > > Don't forget to remove temporary files when you are done

Re: cksum entire dir??

2012-09-11 Thread Robert Bonomi
> Date: Tue, 11 Sep 2012 17:24:08 -0700 > From: Gary Kline > Subject: Re: cksum entire dir?? > > On Wed, Sep 12, 2012 at 01:14:43AM +0200, Polytropon wrote: > > On Tue, 11 Sep 2012 14:38:04 -0700, Gary Kline wrote: > > > > > > I'm trying to checksum

Re: cksum entire dir??

2012-09-11 Thread Lowell Gilbert
Paul Kraus writes: > On Tue, Sep 11, 2012 at 9:18 PM, wrote: > >> It's a real shame Unix doesn't have a really good tool for comparing >> two directory trees. You can use 'diff -r' (even on binaries), but that >> fails if you have devices, named pipes, or named sockets in the >> filesystem. And

Re: cksum entire dir??

2012-09-11 Thread markham breitbach
As long as you are not moving files across mount points, you could always do something like this: cd $SOURCE_DIR && find . -print | cpio -dplm $DEST_DIR rm -rf $SOURCE_DIR That will create hard links from one directory to the other so you don't have to worry about any file corruption si

Re: cksum entire dir??

2012-09-11 Thread Paul Kraus
On Tue, Sep 11, 2012 at 10:03 PM, Gary Kline wrote: > I'm not concerned about a file having been changed, just whether > >% cp -rp /home/klinebak/foodir /home/kline/ > > is 100% reliable. down to the bit! If "cp" is not reliable (down to the bit), then you have muc

Re: cksum entire dir??

2012-09-11 Thread Paul Kraus
On Tue, Sep 11, 2012 at 9:18 PM, wrote: > It's a real shame Unix doesn't have a really good tool for comparing > two directory trees. You can use 'diff -r' (even on binaries), but that > fails if you have devices, named pipes, or named sockets in the > filesystem. And diff or cksum don't tell yo

Re: cksum entire dir??

2012-09-11 Thread Gary Kline
] [ Size only ] [ Thorough ] [ Cancel ] | > +--+ > > Quick = file names, Size only = file sizes, Thorough = file > content. > I'm not concerned about a file having been changed, just whether %

Re: cksum entire dir??

2012-09-11 Thread Colin Barnabas
On Tue, Sep 11, 2012 at 05:24:08PM -0700, Gary Kline wrote: > On Wed, Sep 12, 2012 at 01:14:43AM +0200, Polytropon wrote: > > On Tue, 11 Sep 2012 14:38:04 -0700, Gary Kline wrote: > > > > > > I'm trying to checksum directories as I move them around. > > > ive read the man page for sum and cksum ..

Re: cksum entire dir??

2012-09-11 Thread Noel
On 9/11/2012 7:48 PM, Polytropon wrote: > > I think I tried something like your second example last night. > I think I did > > % cksum foodir/* > That lets the shell expand * to the content of foodir, making > a final command line like "cksum foodir/file1 foodir/file2" > and so on

Re: cksum entire dir??

2012-09-11 Thread Polytropon
On Tue, 11 Sep 2012 17:24:08 -0700, Gary Kline wrote: > On Wed, Sep 12, 2012 at 01:14:43AM +0200, Polytropon wrote: > > On Tue, 11 Sep 2012 14:38:04 -0700, Gary Kline wrote: > > > > > > I'm trying to checksum directories as I move them around. > > > ive read the man page for sum and cksum ... or m

Re: cksum entire dir??

2012-09-11 Thread Gary Kline
On Wed, Sep 12, 2012 at 01:14:43AM +0200, Polytropon wrote: > On Tue, 11 Sep 2012 14:38:04 -0700, Gary Kline wrote: > > > > I'm trying to checksum directories as I move them around. > > ive read the man page for sum and cksum ... or maybe skimmed > > them. no joy. anybody know of a utility to d

Re: cksum entire dir??

2012-09-11 Thread Polytropon
On Tue, 11 Sep 2012 14:38:04 -0700, Gary Kline wrote: > > I'm trying to checksum directories as I move them around. > ive read the man page for sum and cksum ... or maybe skimmed > them. no joy. anybody know of a utility to do this? I've > got files that are decades old... Maybe it's possib

cksum entire dir??

2012-09-11 Thread Gary Kline
I'm trying to checksum directories as I move them around. ive read the man page for sum and cksum ... or maybe skimmed them. no joy. anybody know of a utility to do this? I've got files that are decades old... tx, guys. gary ___ freebsd-questio

Re: lost+found dir placement

2012-03-13 Thread Polytropon
klf or createlf... as a binary. > > The existing fsck_ffs has a catastrophic failure mode if there is no > > space on the disk for the lost+found directory to grow to acomodate > > the recovered file entries. > > > > I was surprised to find empty lost+found dir i

Re: lost+found dir placement

2012-03-13 Thread jb
nd entry ? > The existing fsck_ffs has a catastrophic failure mode if there is no > space on the disk for the lost+found directory to grow to acomodate > the recovered file entries. > I was surprised to find empty lost+found dir in /mnt. drwx-- 2 root wheel 512 May

Re: lost+found dir placement

2012-03-13 Thread Robert Bonomi
jb wrote: > > Hi, > > Each fs should have its own lost+found directory. > It is used by fsck for placing recovered corrupted fs files in there. > This implies the dir must have already existed (it may not be mounted ad hoc > e.g. at boot time, during fs recovery). >

Re: lost+found dir placement

2012-03-13 Thread Polytropon
On Tue, 13 Mar 2012 07:58:09 + (UTC), jb wrote: > Hi, > > Each fs should have its own lost+found directory. > It is used by fsck for placing recovered corrupted fs files in there. Correct. > This implies the dir must have already existed (it may not be mounted ad hoc >

Re: lost+found dir placement

2012-03-13 Thread Adam Vande More
On Tue, Mar 13, 2012 at 2:58 AM, jb wrote: > Hi, > > Each fs should have its own lost+found directory. > It is used by fsck for placing recovered corrupted fs files in there. > This implies the dir must have already existed (it may not be mounted ad > hoc > e.g. at boot tim

lost+found dir placement

2012-03-13 Thread jb
Hi, Each fs should have its own lost+found directory. It is used by fsck for placing recovered corrupted fs files in there. This implies the dir must have already existed (it may not be mounted ad hoc e.g. at boot time, during fs recovery). In FreeBSD 9, I found lost+found dir under /mnt. This

tar won't extract a dir

2012-03-12 Thread Glenn McCalley
Hello all, never had tar refuse to extract a directory from an archive before. tar archive is: htdocs.1201.tar.gz tar tzf htdocs.1201.tar.gz | grep standrewsglenwood ...shows a list of files contained within the archived dir: htdocs/standrewsglenwood/ yet the command: tar xzf htdocs.1201

Re: pkg-config --cflags glib-2.0 gives wrong -I dir

2011-06-26 Thread Matthias Apitz
El día Saturday, June 25, 2011 a las 07:20:52PM -0500, Dan Nelson escribió: > Checking Solaris and SUSE Linux, I see a similar pair of directories: > > solaris$ pkg-config --cflags glib-2.0 > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > > linux$ pkg-config --cflags glib-2.0 > -I/usr/in

Re: pkg-config --cflags glib-2.0 gives wrong -I dir

2011-06-25 Thread Dan Nelson
In the last episode (Jun 25), Matthias Apitz said: > Why gives > > $ pkg-config --cflags glib-2.0 > -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include > > $ ls -ld /usr/local/include/glib-2.0 /usr/local/lib/glib-2.0/include > ls: /usr/local/lib/glib-2.0/include: No such file or dir

pkg-config --cflags glib-2.0 gives wrong -I dir

2011-06-24 Thread Matthias Apitz
Hello, Why gives $ pkg-config --cflags glib-2.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include $ ls -ld /usr/local/include/glib-2.0 /usr/local/lib/glib-2.0/include ls: /usr/local/lib/glib-2.0/include: No such file or directory drwxr-xr-x 5 root wheel 512 May 28 19:01 /usr/

Re: how to recursively symlink every file in a dir

2010-09-09 Thread Chad Perrin
On Thu, Sep 09, 2010 at 08:23:09PM -0400, Garance A Drosehn wrote: > > It looks like my 'lndir' script started out as a copy of a > script named 'lndir.sh' that the XConsortium had in Oct 1988. [snip] > > Given that the port is written in C and much more recent, I > suspect it is the right way

Re: how to recursively symlink every file in a dir

2010-09-09 Thread Garance A Drosehn
At 2:54 PM -0600 9/9/10, Chad Perrin wrote: On Thu, Sep 09, 2010 at 04:28:59PM -0400, Garance A Drosehn wrote: I believe early X11-distributions had a script called "lndir" would pretty much do exactly what you want here. And then there was a companion command called "breakln" which would

Re: how to recursively symlink every file in a dir

2010-09-09 Thread Chad Perrin
On Thu, Sep 09, 2010 at 04:28:59PM -0400, Garance A Drosehn wrote: > > I believe early X11-distributions had a script called "lndir" > would pretty much do exactly what you want here. And then > there was a companion command called "breakln" which would > remove the symlink and make a copy of the

Re: how to recursively symlink every file in a dir

2010-09-09 Thread Randal L. Schwartz
>>>>> "Randal" == Randal L Schwartz writes: Randal> I think null-mounts would do what you're trying to do... as in, as long Randal> as you're reading, you're reading from the old stuff, but if you ever Randal> write something new, all the right

Re: how to recursively symlink every file in a dir

2010-09-09 Thread Randal L. Schwartz
>>>>> "Aryeh" == Aryeh Friedman writes: Aryeh> I want to make it so every file is a seperate symlink in dir2 if and Aryeh> only if it is a regular file (not a dir) in dir1... the reason is if Aryeh> the file is unchanged then use symlink but I can rm the symlin

Re: how to recursively symlink every file in a dir

2010-09-09 Thread Garance A Drosehn
At 1:24 PM -0400 9/9/10, Aryeh Friedman wrote: I want to make it so every file is a seperate symlink in dir2 if and only if it is a regular file (not a dir) in dir1... the reason is if the file is unchanged then use symlink but I can rm the symlink and replace it with a non-symlink: To show the

Re: how to recursively symlink every file in a dir

2010-09-09 Thread Giorgos Keramidas
On Thu, 9 Sep 2010 13:24:50 -0400, Aryeh Friedman wrote: > I want to make it so every file is a seperate symlink in dir2 if and > only if it is a regular file (not a dir) in dir1... the reason is if > the file is unchanged then use symlink but I can rm the symlink and > replace i

Re: how to recursively symlink every file in a dir

2010-09-09 Thread Aryeh Friedman
' | grep -v src/build | cut -f6- -d'/'` ) ln -s ~aegis/fnre/baseline/$i $i end On Thu, Sep 9, 2010 at 2:13 PM, Joshua Isom wrote: > On 9/9/2010 12:24 PM, Aryeh Friedman wrote: >> >> I want to make it so every file is a seperate symlink in dir2 if and >> only

Re: how to recursively symlink every file in a dir

2010-09-09 Thread Joshua Isom
On 9/9/2010 12:24 PM, Aryeh Friedman wrote: I want to make it so every file is a seperate symlink in dir2 if and only if it is a regular file (not a dir) in dir1... the reason is if the file is unchanged then use symlink but I can rm the symlink and replace it with a non-symlink: To show the

Re: how to recursively symlink every file in a dir

2010-09-09 Thread Arthur Chance
On 09/09/10 18:50, Arthur Chance wrote: On 09/09/10 18:24, Aryeh Friedman wrote: I want to make it so every file is a seperate symlink in dir2 if and only if it is a regular file (not a dir) in dir1... the reason is if the file is unchanged then use symlink but I can rm the symlink and replace

Re: how to recursively symlink every file in a dir

2010-09-09 Thread Aryeh Friedman
dir2 if and >> only if it is a regular file (not a dir) in dir1... the reason is if >> the file is unchanged then use symlink but I can rm the symlink and >> replace it with a non-symlink: > > cpio -pdl > > _

Re: how to recursively symlink every file in a dir

2010-09-09 Thread Arthur Chance
On 09/09/10 18:24, Aryeh Friedman wrote: I want to make it so every file is a seperate symlink in dir2 if and only if it is a regular file (not a dir) in dir1... the reason is if the file is unchanged then use symlink but I can rm the symlink and replace it with a non-symlink: cpio -pdl

how to recursively symlink every file in a dir

2010-09-09 Thread Aryeh Friedman
I want to make it so every file is a seperate symlink in dir2 if and only if it is a regular file (not a dir) in dir1... the reason is if the file is unchanged then use symlink but I can rm the symlink and replace it with a non-symlink: To show the problem I am attempting to solve: foo: (owned

Re: Write attempt to file in ZFS snapshot dir causes panic

2009-10-20 Thread Carl Chave
Thanks for testing it out krad. I went ahead and submitted the PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=139806 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail

Re: Write attempt to file in ZFS snapshot dir causes panic

2009-10-20 Thread krad
2009/10/20 Carl Chave > Does file o exist? In my example I first try to create a new file > which fails as expected. I then try to append to an existing file > which triggers the panic. > > On Tue, Oct 20, 2009 at 6:17 AM, krad wrote: > > > > > > 2009/10/19 Carl Chave > >> > >> I'm new to Fre

Re: Write attempt to file in ZFS snapshot dir causes panic

2009-10-20 Thread krad
2009/10/19 Carl Chave > I'm new to FreeBSD. Been experimenting with 8.0-RC1 and zfs in a VM. > Really haven't even installed it yet, just getting familiar with zfs > usage from the fixit environment. I experienced some strange behavior > and was wondering if this would warrant a bug report: > >

Write attempt to file in ZFS snapshot dir causes panic

2009-10-18 Thread Carl Chave
I'm new to FreeBSD. Been experimenting with 8.0-RC1 and zfs in a VM. Really haven't even installed it yet, just getting familiar with zfs usage from the fixit environment. I experienced some strange behavior and was wondering if this would warrant a bug report: 1. load zfs from bootloader prompt

problem rsycing with remote dir

2009-02-05 Thread David Karapetyan
Hello everyone. I am using the --backup flag in rsync to save incremental changes that rsync makes when I sync a directory on my laptop with my remote server. Please look at my pastebin code: http://pastebin.com/m16a3ce38On The problem is that I end up generating an r...@davidkarapetyan.homeuni

Re: Conflicting packages installing to same dir

2008-08-31 Thread Josh Carroll
> there both needed as a dependency by X.Org so although your suggestionis good > in theory, unf not going to work in prac, although i had tried it :) They are both dependencies because you've told it so. cd /usr/ports/x11-drivers/xorg-drivers make config Deselect either the i810 or intel drive

Re: Conflicting packages installing to same dir

2008-08-31 Thread Warren Liddell
> Simple. Don't install both of them ;) > Just install xf86-video-intel. Supports the current intel video chipsets there both needed as a dependency by X.Org so although your suggestionis good in theory, unf not going to work in prac, although i had tried it :) _

Re: Conflicting packages installing to same dir

2008-08-31 Thread Manolis Kiagias
Warren Liddell wrote: ===> Installing for xf86-video-intel-2.4.0 ===> xf86-video-intel-2.4.0 conflicts with installed package(s): xf86-video-i810-1.7.4_1 They install files into the same place. Please remove them first with pkg_delete(1).

Conflicting packages installing to same dir

2008-08-31 Thread Warren Liddell
===> Installing for xf86-video-intel-2.4.0 ===> xf86-video-intel-2.4.0 conflicts with installed package(s): xf86-video-i810-1.7.4_1 They install files into the same place. Please remove them first with pkg_delete(1). How do i get these

Re: using sys/fusefs-ntfs as the home dir

2008-08-25 Thread Alejandro Pulver
x it) is any attempt to mount it from anywhere in > /etc/rc or with non-delayed option in fstab will fail (non-fatally and > repeating the attempt after your in "full" multiuser mode works just > fine)... I was asking about how to structure the dir's and from what > you

Re: using sys/fusefs-ntfs as the home dir

2008-08-25 Thread Alejandro Pulver
) > > 250 GB external (usb) that will be ntfs formated [d: for windows and > > /mnt/d on fbsd) > > > > My question how do I set it up so my windows user's dir is the same as > > my home dir on fbsd? (assume it will be on the ext. drive)? > > The solution

Re: using sys/fusefs-ntfs as the home dir

2008-08-20 Thread Aryeh Friedman
in "full" multiuser mode works just fine)... I was asking about how to structure the dir's and from what you described I don't think it solves the problem completely because the "Desktop" dir/folder has two completely different means under both OS's and besides many sym

Re: using sys/fusefs-ntfs as the home dir

2008-08-20 Thread Polytropon
> My question how do I set it up so my windows user's dir is the same as > my home dir on fbsd? (assume it will be on the ext. drive)? The solution would be very simple, but because you're insisting on having the "D:" partition formatted as NTFS, a problem occurs: As

using sys/fusefs-ntfs as the home dir

2008-08-19 Thread Aryeh Friedman
n how do I set it up so my windows user's dir is the same as my home dir on fbsd? (assume it will be on the ext. drive)? Secondary question which I know is answered at WineHQ so no need to answer unless there is a BSD specific issue is how do I make it so wine will treat the first partion o

Re: using sys/fusefs-ntfs as the home dir

2008-08-19 Thread Aryeh Friedman
and the rest > for fbsd [8-current]) > 250 GB external (usb) that will be ntfs formated [d: for windows and > /mnt/d on fbsd) > > My question how do I set it up so my windows user's dir is the same as > my home dir on fbsd? (assume it will be on the ext. drive)? > > S

Re: Enforce minimal file/ dir permissions

2008-06-21 Thread Mister Olli
hi hi... after looking at the mac_bsdextended docs I found out, that it will not solve my problem: > "When access to a file system object is attempted, the list of rules > is iterated until either a matching rule is located or the end is reached" <-- From http://freebsd.therek.net/handbook/mac-b

Re: Enforce minimal file/ dir permissions

2008-06-17 Thread Mister Olli
hi Am Montag, den 16.06.2008, 08:51 -0500 schrieb Jeffrey Goldberg: > On Jun 16, 2008, at 7:21 AM, Bill Moran wrote: > > > Look at MAC and the bsdextended module (filesystem firewall): > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mac.html > > http://www.freebsd.org/doc/en_US.

Re: Enforce minimal file/ dir permissions

2008-06-16 Thread Bill Moran
In response to Jeffrey Goldberg <[EMAIL PROTECTED]>: > On Jun 16, 2008, at 7:21 AM, Bill Moran wrote: > > > Look at MAC and the bsdextended module (filesystem firewall): > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mac.html > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/han

Re: Enforce minimal file/ dir permissions

2008-06-16 Thread Jeffrey Goldberg
On Jun 16, 2008, at 7:21 AM, Bill Moran wrote: Look at MAC and the bsdextended module (filesystem firewall): http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mac.html http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mac-bsdextended.html I've recently been looking at those mys

Re: Enforce minimal file/ dir permissions

2008-06-16 Thread Bill Moran
In response to Mister Olli <[EMAIL PROTECTED]>: > Hi... > > on my filer I have to enforce minimal file permission of 664 for files > and 755 for directorys. > > no user should be able to change them to a value less than that. > > any ideas how to do this? Look at MAC and the bsdextended module

  1   2   3   >