Complete.Org: Mailing Lists: Archives: discussion: November 1998:
Re: [aclug-L] shell script
Home

Re: [aclug-L] shell script

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Jesse Kaufman <kaufmjes@xxxxxxxxxxxxxxx>
Cc: "aclug-L@xxxxxxxxxxxx" <aclug-L@xxxxxxxxxxxx>
Subject: Re: [aclug-L] shell script
From: Thomas Wallis <wallis@xxxxxxxxxxx>
Date: Fri, 20 Nov 1998 09:00:36 -0600 (EST)
Reply-to: aclug-L@xxxxxxxxxxxx

On Thu, 19 Nov 1998, Jesse Kaufman wrote:

> is there some sort of shell script that can do the following for me?
> 
> 1.) run ping <arbitrary webpage> (i usually just do yahoo)
> 2.) if it connects no problems, just exit, doing nothing...
> 3.) if it is down send an e-mail to a predefined list of people (my
> netadmins)
>     with the subject line "quadnet's down AGAIN..."
> 
> the LAN i am on is up and down all the time, and unfortunately all
> network administers for it are not accessing inet via this LAN, so they
> only know it's down when they manually check (this server is, of course,
> windoze).
> 
> along with that question brings another question:  is there a way to
> configure sendmail to not use <username>@<localhost name>, and instead
> something like kaufmjes@xxxxxxxxxxxxxxx, or the like?

        You might look into expect.  Expect can do this fairly easily, I
would think.  

                                Tom Wallis
> 
> jesse
> 
> --
> +============================+============================+
> ! Tabor College              !          ICQ UIN1: 4022791 !
> ! 400 S. Jefferson           !         ICQ UIN2: 13115282 !
> ! Hillsboro, KS 67063        ! kaufmjes@xxxxxxxxxxxxxxxxx !
> +============================+============================+
> 
> 
> 
> ---
> This is the Air Capitol Linux Users Group discussion list.  If you
> want to unsubscribe, send the word "unsubscribe" to
> aclug-L-request@xxxxxxxxxxxx.  If you want to post to the list, send your
> message to aclug-L@xxxxxxxxxxxx.
> 

Disclaimer: All opinions expressed here are my own and not those of WSU.

EMAIL address:  wallis@xxxxxxxxxxx    wallis@xxxxxxxxxxxxxxxxxx  

   


---
This is the Air Capitol Linux Users Group discussion list.  If you
want to unsubscribe, send the word "unsubscribe" to
aclug-L-request@xxxxxxxxxxxx.  If you want to post to the list, send your
message to aclug-L@xxxxxxxxxxxx.



[Prev in Thread] Current Thread [Next in Thread]