Re: Fat Fingered An 'rm -rf' of Important Files

2013-02-27 Thread Ben Cottrell
On Feb 27, 2013, at 19:08, "Joseph A. Nagy, Jr" wrote: > If we can skip the finger wagging on that part I'd appreciate it. No finger-wagging from this quarter at least! Something I've sometimes done to retrieve text content is to run a "strings" on the disk device (the thing in /dev). You obviou

Re: Confused by restore(8) man page example

2013-03-04 Thread Ben Cottrell
On Mar 4, 2013, at 01:47, "Ronald F. Guilmette" wrote: > All I see is a pre-existing BSD partition being explicitly newfs'ed and > then mounted, followed by some stuff being restored to that (clean) > BSD partition from whatever is currently sitting on the tape drive > called /dev/sa0. > > So? W

Re: how to forbid a process to use swap?

2013-03-09 Thread Ben Cottrell
On Mar 9, 2013, at 15:55, Anton Shterenlikht wrote: > I run a program that uses large arrays. > I don't want it to use swap, because it's > too slow. I want the program to fail when > there's not enough RAM, rather than using > swap. How to do this? If it were me I would start with mlockall() and

Re: day light saving time happened today

2013-03-10 Thread Ben Cottrell
On Mar 10, 2013, at 10:37, Fbsd8 wrote: > day light saving time happened early sunday morning and the time shown by the > date command is still one hour behind. I just did a clean 9.1 install from > cdrom and selected the correct time zone for my location. The DST change worked fine for me...!

Re: day light saving time happened today

2013-03-10 Thread Ben Cottrell
On Mar 10, 2013, at 14:50, Fbsd8 wrote: > # /root >find /usr/share/zoneinfo -type f -print | xargs md5 | grep `md5 -q > /etc /localtime` > MD5 (/usr/share/zoneinfo/America/New_York) = e4ca381035a34b7a852184cc0dd89baa That's really, really odd. I'm confused. If you run "date" does it show the ti

Re: [Bulk] Re: day light saving time happened today

2013-03-10 Thread Ben Cottrell
On Mar 10, 2013, at 19:18, Fbsd8 wrote: > What is really needed is for the tzsetup program to state which east coast > selections have day light saving included. Maybe a pr is in order. Nope, you pretty conclusively proved that you're using the right time zone setting. Trust me. :-) That md5 you

Re: Installing 9.1 without re-partitioning hard drive

2013-03-14 Thread Ben Cottrell
Lee, Are you using DOS-style or GPT partitions? I'm assuming DOS-style, and the rest of this email is only correct if that's the case, so correct me if I'm wrong. There's actually two partition tables at work here -- the "big" one, that lives at the start of the physical disk and divides up the F

Different take on old FAQ: multihoming and source-based routing

2012-09-01 Thread Ben Cottrell
Hi everyone, I've been doing a lot of google searching recently for variants of "freebsd source-based routing" to look for how to get a dual-homed FreeBSD machine to send to the correct default gateway based on the source address of the packets it's expecting that gateway to pass along. You can't

Re: using AWK

2012-12-17 Thread Ben Cottrell
Hi Jack, On Dec 17, 2012, at 03:39, Jack Mc Lauren wrote: > How can I read a file which contains a number and assign that number to > a variable via awk programming? By the way, I want to use this awk program > in a shell script. I'm actually not sure what you're asking, exactly -- you want the

Re: using AWK

2012-12-17 Thread Ben Cottrell
On Dec 17, 2012, at 04:22, Jack Mc Lauren wrote: > This is what i wrote: OK -- I'm adjusting my assumptions about what you're trying to do. :-) Bear with me: > #! /bin/sh > > filename=$0 So (a) there's only one input file, not multiple... and (b) it should come from the command line of the she