[thelist] [OT] Gift Culture on the Net: A Rant (owed tip)

Garrett Coakley garrett at polytechnic.co.uk
Sun Aug 19 09:37:49 CDT 2001


On Sun, 19 Aug 2001 04:26:34 +0000, Garrett Coakley
<garrett at polytechnic.co.uk> wrote:


> Man! You can tell when you've had a few beers *;)


And of course, you can tell when I've had too much, because I muck up my
reply and send it to the list!

Sorry folks.


<tip author="Garrett Coakley" type="Dial up on linux">

On Linux? On a dial up? Got some tasks you want to automatically trigger
when you connect? Have a look at /etc/ppp/ip-up.local (on redhat7.1.....
other dists may differ). This file is sourced by the main ip-up script
once your connection is established. 

As an example, heres mine. This brings up my firewall and also triggers
the collection of mail for all users on the system. With a little bit of
basic shell scripting you could do all sorts of cool things in here.

[root at cincinnati] garrett $ more /etc/ppp/ip-up.local 
#!/bin/bash
# local configuration for things to do when ppp is up and running
# Author - Garrett Coakley

# Set up our dial-up firewall rules
/etc/firewall/gShield.rc

# Grab mail for all users on the system.
# Use the syslog facility to log progress
fetchmail --syslog


</tip>
-- 
----------------------------------------------------------------------------
WORK: http://spiked.co.uk/
PLAY: http://polytechnic.co.uk/




More information about the thelist mailing list