Re: .sh script code to determine IPv4 or IPv6

2013-08-06 Thread markham breitbach
I have some scripts that do fairly crude IPv4/6 validation testing. It is generally assumed that the input is coming from someone who knows what they are doing, but even the best of us have fat fingers sometimes :) Having standardized routines for something like this is great! Thanks, -Markham

Re: .sh script code to determine IPv4 or IPv6

2013-08-06 Thread markham breitbach
On 13-08-03 8:04 AM, Teske, Devin wrote: > Actually, there's /usr/share/bsdconfig/media/tcpip.subr > > I don't seem to have that (FreeBSD 8.3-RELEASE). Where would I get that from? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.or

Re: jls usage

2013-07-12 Thread markham breitbach
On 13-07-12 9:56 AM, Frank Leonhardt wrote: > On 12/07/2013 16:32, Frank Leonhardt wrote: >> I've tried using the actual jail name, and the hostname to be sure - nothing >> - and on >> checking (jls -v) I'm somehow ending up with the Name being the same as the >> ID. I just >> put this down to a

Re: Why doesn't this work?

2013-06-27 Thread markham breitbach
logger logs to syslog, so unless you have user.notice logging to /var/log/testing.log this will probably not do what you are expecting. Have a look in /var/log/messages for something like this. Jun 27 16:38:03 xxx-hostname base_http_access: /var/log/testing.log Otherwise, you may want to setup

Re: looking for command to display default route ip address

2013-05-29 Thread markham breitbach
route -n get default On 13-05-29 12:03 PM, Joe wrote: > Hello list > > How do I find the ip address of the default route? > > thanks > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To un

Re: check variable content size in sh script

2013-05-16 Thread markham breitbach
something like this: #!/bin/sh if [ $# -lt 1 ] ; then echo "put a nickel in the slot, pal!" exit 1; fi NUMCHARS=`echo $1 | wc -m` if [ $NUMCHARS -lt 51 ] ; then echo "You input "$NUMCHARS" characters." exit 0 else echo "whoa sailor I can't take all that!" exit 1 fi On 13-05-16 9:08 AM, Joe wrote

Re: VIMAGE in GENERIC kernel

2013-05-09 Thread markham breitbach
I was talking with BZ about this a few months ago, and it does not look terribly likely to happen any time soon, although I am still willing to pay good money for anyone willing and able to fix the problems with it. --- [1]Markham Breitbach Network Operations SSi People

Re: sshd - time out idle connections

2013-05-03 Thread markham breitbach
Depending on the shell you are using, you may be able to set that to auto-logout, or you could set a cron job to run every 5 minutes and terminate tty's with > 5min idle time. Honestly though, you will rarely find a good technical solution to a social problem--there's always a work-around--and t

Re: cksum entire dir??

2012-09-13 Thread markham breitbach
Perhaps this would be a question best asked in a Linux Forum or on a Fedora list in that case. This is, after all, the FreeBSD Questions mailing list. On 12-09-12 9:12 PM, Gary Kline wrote: > On Wed, Sep 12, 2012 at 08:17:16PM -0500, Robert Bonomi wrote: >>> Date: Wed, 12 Sep 2012 14:47:04 -070

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: gpart and mbr give "no operating system" message at boot.

2012-09-07 Thread markham breitbach
g of a bandaid situation anyway. On 12-09-07 2:48 PM, Warren Block wrote: > On Fri, 7 Sep 2012, markham breitbach wrote: > >> I am trying to partition a disk to be used as the primary boot disk for a >> FreeBSD 8.3 >> installation using gpart to install an MBR partition. >

gpart and mbr give "no operating system" message at boot.

2012-09-07 Thread markham breitbach
I am trying to partition a disk to be used as the primary boot disk for a FreeBSD 8.3 installation using gpart to install an MBR partition. The system is an existing FreeBSD 5.2.1 system at a remote location (ie impossible to boot from CD/netboot/etc), but has no data of value. To do this I am

Re: free sco unix

2011-06-18 Thread markham breitbach
I think this thread has wandered pretty far from having anything at all to do with freebsd. Please find a more appropriate place for this discussion. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ques

8.1 broken inter-jail IP communication

2011-06-15 Thread markham breitbach
have a lot of time to poke around at things as I need to do whatever I can to get it back up a quickly as possible, although I am continuing to try and recreate this scenario in a test environment. Best Regards, Markham Breitbach ___ freebsd-q