All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hal <haltec@kvinet.com>
To: linux-newbie@vger.kernel.org
Subject: Re: ADSL & Sending Mail? Was: DialUp and ADSL.......
Date: Tue, 28 Nov 2006 13:21:04 -0500	[thread overview]
Message-ID: <20061128182104.GA2357@lnx2> (raw)

	Disregard my request for help below.. I found a fix.. :^).
Hal..

	Meanwhile maybe I can ask for more help with the scheme now
being used in two parts; bash script follows:
------------------------------------------------------------------------------
#!/bin/bash
# /usr/local/sbin/postmail (script to sendmail via kvinet.com..

# Disable ppp.adsl
/bin/rm /etc/ppp

# Setup to use dialup modem
/bin/ln -s /etc/ppp.dial /etc/ppp

# Run ppp for DialUp
/usr/sbin/ppp-go

# need a waitfor here :
# "NO CARRIER Local: 146.82.214.57 -> Remote: 10.1.4.1 ppp0"
# Needs a new line after that before invoking sendmail....
# The 146.x.x.x may be different considering dhcp.


#One of my many trys to make it one script, all failing..
if grep  Local:
then	 /bin/echo -e ""
fi
# Invoking postmail1, thence hitting enter and invoking postmail2, does
# the trick...
#
# TEMPORARY: The above, before the if,  is postmail1 and the below is
# postmail2..
#

# Sending mail via kvinet.com relay. See /etc/mail/submit.cf DS
# Need to check to see if any outgoing mail in queue..
# Not really necessary as it'll exit gracefully with no mail in the queue..

# Running sendmail 8.13.3, secure, as user smmsp - /var/spool/clientmqueue.
/usr/sbin/sendmail -q -v -Ac

# Stop ppp Dialup
/usr/sbin/ppp-off

# Disable ppp.dial
/bin/rm /etc/ppp

# Setup to use ADSL Modem
/bin/ln -s /etc/ppp.adsl /etc/ppp

echo  " Back to ADSL StandBy."
#
------------------------------------------------------------------------------
-- 

         Hal.      GNU/Linux -- Slackware 10.1, kernel 2.4.29
.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

             reply	other threads:[~2006-11-28 18:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-28 18:21 Hal [this message]
     [not found] <e0O5uQ5D.1164229866.0313500.haltec@kvinet.com>
2006-11-25 21:00 ` ADSL & Sending Mail? Was: DialUp and ADSL Chuck Gelm
2006-11-27 19:19   ` Hal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061128182104.GA2357@lnx2 \
    --to=haltec@kvinet.com \
    --cc=linux-newbie@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.