ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Bezukladnikov Oleg" <oleg@ttu.udmlink.ru>
To: <community@altlinux.ru>
Subject: Re: [Comm] помогите наладить модемную почту
Date: Tue, 2 Dec 2003 08:24:00 +0400
Message-ID: <00f201c3b88c$1f54f6e0$2c01a8c0@ivc.ru> (raw)
In-Reply-To: <3FCBA597.8090101@parkheights.dyndns.org>

[-- Attachment #1: Type: text/plain, Size: 171 bytes --]

Глянь приложенный скрипт. Прием и посылка почты запускалась по crony,
сначала получал почту fetchmail'ом, потом попросил провайдера настроить UUCP
(поддерживает докачку).

[-- Attachment #2: diall.txt --]
[-- Type: text/plain, Size: 1065 bytes --]

#/bin/sh
/root/sml/ppp-on

### ÐÏÉÓË ppp É ÕÓÔÁÎÏ×ËÁ route ÎÁ ÎÅÇÏ

while : ; do
    ifconfig | grep 213. -B1 > /tmp/pppp
    if  [ "$?" = "0" ] ; then
	p1=`head -c4 /tmp/pppp`
	if [ "$?" = "0" ] ; then 
	   sleep 2
	   break
	fi
    fi	
    sleep 3
done

#######
#echo "run fetchmail"
#/usr/local/bin/fetchmail -v
#fetchmail -v
#echo "run sendmail"
#sendmail -q

#########
#run uucp
#######
sleep 15
#sleep 10
uucico -D -S lota2
/root/sml/ppp-off $p1
###uuxqt
sleep 10
sleep 10
#tail -n1 /var/log/uucp/Log > /root/log_u
#dd=`grep -i -c "error" /root/log_u`
#if [ $? = 0 ] ; then
### ÚÁÐÕÓË ×ÔÏÒÏÊ ÒÁÚ
   /root/sml/ppp-on
### ÐÏÉÓË ppp É ÕÓÔÁÎÏ×ËÁ route ÎÁ ÎÅÇÏ
  while : ; do
     ifconfig | grep 213. -B1 >/tmp/pppp
        if  [ "$?" = "0" ] ; then
	        p1=`head -c4 /tmp/pppp`
	        if [ "$?" = "0" ] ; then
	           sleep 2
                   break
                fi
        fi
      sleep 3
  done
  sleep 15
  sleep 15
  uucico -D -S lota2
  /root/sml/ppp-off $p1
  uuxqt							         
#fi

  reply	other threads:[~2003-12-02  4:24 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-01 17:35 sergey ivanov
2003-12-01 17:42 ` Maxim Tyurin
2003-12-01 20:33   ` sergey ivanov
2003-12-02  4:24     ` Bezukladnikov Oleg [this message]
2003-12-02  6:40     ` Alexey Morozov
2003-12-03 16:46       ` seriv
2003-12-03 22:09         ` Alexey Morozov
2003-12-04 16:48           ` seriv
2003-12-04 19:04             ` Alexey Morozov
2003-12-05 11:05               ` Alexey Morozov
2003-12-08 20:33                 ` Ivanov
2003-12-09  5:59                   ` Alexey Morozov

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='00f201c3b88c$1f54f6e0$2c01a8c0@ivc.ru' \
    --to=oleg@ttu.udmlink.ru \
    --cc=community@altlinux.ru \
    /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

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git