| jnfuller.freeshell.org - The home page of Josh Fuller | |||||
|
Categories |
index / technology / unix Wed, 28 May 2008
setenv http_proxy using .cshrc when granted specific dhcp hostnames
We use DHCP assigned host addresses at work and I've recently switched my development laptop to FreeBSD after the Debian SSH security fiasco. I've been spoiled by bash and never really used csh very often but I'm finding that I really like the scripting syntax and way environments are set. One of the first things I've done is add a section to my .cshrc to set my http_proxy and HTTP_PROXY for our corporate firewall whenever I am on our network. The basic syntax is...
Now, whenever I login to our corporate network and spawn a shell session using BSD the script automajickally sets up my proxy for me. Nice! email: Josh Fuller | tag: /technology/unix/bsd | permanent link | Share on Facebook Mon, 04 Feb 2008
Handy ways to cut an IP address out of command responses
Every now and then I need to write scripts that read the local IP address and use them on the command line. There are two ways that I've found that will do this in a flash. They aren't very eloquent but they work. cut and cut again
cut and awk
email: Josh Fuller | tag: /technology/unix | permanent link | Share on Facebook |
||||