On Apr 10, 2000 at 17:59, Siddharth Dalal wrote:

>What is this?
>>sleep 3h;ppp-blit;sleep 3h;ppp-blit;beep-on` before going to sleep.

That's a long command line. man sleep, you'll get a clue. Basically this
line tells Linus[0] to wait 3 hours, run ppp-blit (which happens to be the
following script), wait another three hours, run ppp-blit again, then run
beep-on which is presumably (presumption is correct) a program. (A C
program to go 'beep').

>Not that I understood this either...

Ah, this one is a hack...

>#!/bin/sh

Shebang line tells the program that's executing the script (in this case,
the progam is bash -- my shell) to use /bin/sh (which happens to be a
primitive but large and standard shell) to interpret the rest of the file.

>sleep 1;

Wait 1 second (sleep's default unit: seconds).

>if [ -e /root/ppp-blit.lck ]
>then

If /root/pp-blit.lck already exists then...

>echo ppp0 already up

...throw an error and cry...

>else
>echo Bringing up ppp0

...else say I'm connecting to the net...

>echo Blitting email and news > /root/ppp-blit.lck

... create an informative lock file (this is referenced in my
ip-up.local script)...

>ifup ppp0

... and bring up the net connection.

>fi

fo fum.


[0] Deliberate typo. fnord.

-- 
Satya. http://satyaonline.cjb.net/
FREE! Email reminder service at http://satyaonline.cjb.net/rem.html
US-bound grad students! For pre-apps, see http://quickapps.cjb.net/
<<<       Hi! I'm a tagline virus! Steal me & join in the fun!       >>>

To subscribe / unsubscribe goto the site www.ilug-bom.org ., click on the mailing list 
button and fill the appropriate information 
and submit. For any other queries contact the ML maintener

Reply via email to