ntp server: mulitiple interfaces
Bruce Marshall
bmarsh
Mon May 17 11:45:22 PDT 2004
On Sunday 09 March 2003 18:52 pm, Bill Campbell wrote:
> On Sun, Mar 09, 2003 at 06:02:13PM -0500, David A. Bandel wrote:
> >On Sun, 9 Mar 2003 14:15:42 -0800
> >
> >Bill Campbell <bill at celestial.com> wrote:
> >> On Sun, Mar 09, 2003 at 04:42:13PM -0500, Joel Hammer wrote:
> >> >Yes, I see ntp listening on both interfaces, too. I adjusted my
> >> >firewall to allow udp and tcp packets from my intranet client,
> >> > but, no avail. Well, I'll keep poking at it.
> >> >
> >> >Thanks for this useful command, lsof.
> >>
> >> It's amazing how many useful commands are on Linux and Unix
> >> systems.
> >>
> >> How many on the list use ``comm''?
> >
> >not in years. I prefer diff -u, gives me a better perspective. To
> > each his own.
>
> That's fine for some things, but consider two directories that
> are very similar, and you want to find which files are in dir2
> that aren't in dir1.
>
> cd dir1
> find . -type f | sort > /tmp/list1
> cd dir2
> find . -type f | sort > /tmp/list2
> comm -13 /tmp/list1 /tmp/list2 > /tmp/list3
>
> Now /tmp/list3 has a list of all files in dir2 that aren't in dir1.
> Perhaps you want to copy all the files from dir2 that aren't in
> dir1, now you can run:
>
> cpio -pdumv dir1 < /tmp/list3
>
> Bill
Would rsync be an easier way to do this? Use the 'n' option first to see
what files would be copied... then without the 'n' option to do the
copying....
Something like:
rsync -avrn /pathto/dir1/ /pathto/dir2/
Then remove the 'n'
But whatever works.
--
+----------------------------------------------------------------------------+
+ Bruce S. Marshall bmarsh at bmarsh.com Bellaire, MI 03/09/03
19:36 +
+----------------------------------------------------------------------------+
"If a turtle doesn't have a shell, is he homeless or naked?"
More information about the Linux-users
mailing list