Posts Tagged “bash”

17 Jul: Distributing Static Routes with DHCP

I’m set­ting up an iso­lated net­work for peo­ple to test inter­nal appli­ca­tions on, since the devel­op­ers all have Sun work­sta­tions with a dual-port Gigabit NIC on the moth­er­board, and we’ve got a bunch of older net­work equip­ment that we haven’t got­ten around to eBay­ing yet. What I’m doing is link­ing the sec­ond NICs together with […]

16 Oct: Daemonizing Processes

Update: Commenters have pointed out a few things:

This post is incomplete/incorrect. What I’m doing now is hav­ing the dae­mon func­tion call a script that looks like this:
#!/bin/bash
exec 1>&-
exec 2>&-
exec 3>&-
nohup myPropApp & 2>&1 > thelog.txt
That code was from another web­site who’s URL I lost, and I posted the solu­tion below based on another, alter­nate method […]

1 Oct: Xen and The Art of Free Speech

Aside from the laugh­able idea of “mil­i­tantly” sup­port­ing any­thing with a blog post, Miguel sim­ply noted that these peo­ple exist, have writ­ten a book, and will be doing the speaking-tour-thing near him. Does he agree with the con­tents? (shakes eight-ball) Signs point to Yes.
Is he free to do so? Also yes.
Are you free to ignore him? Still yes.
Does […]

8 Apr: Fool Me Once

For any­one who wants to han­dle dynamic DNS (either in con­junc­tion with DHCPd or not) with Bind and absolutely hates the ver­bosity of nsup­date, here’s a shell script which han­dles the common-cases of adding and removing:

Forward/reverse entries
CNAMEs

The com­mand line argu­ments are –k (privkey) –a (action) –h (host­name) –i (ipaddr) –c (cname) –d (debu­glevel) (-t ttl)

Usage:
[…]