Subject: Re: [LINUX:7780] Otomatik Mail
From: Necati Ersen SISECI (siseci@cclub.ktu.edu.tr)
Date: Wed 23 Jul 1997 - 09:24:07 EET DST
Taner TANRISEVER wrote:
> user1@hesap : mesaj1 : mesaj2 (1.satir)
> user2@hesap : masaj3 : mesaj4 (2.satir)
> .
>
> 1 satirdaki mesaj1; subject kisminda ve mesaj2; Mesaj Text kisminda
#!/bin/sh
while read LINE
do
ADRES=`echo $LINE|cut -d: -f1`
KONU=`echo $LINE|cut -d: -f2`
TEXT=`echo $LINE|cut -d: -f3`
echo $TEXT|mail -s$KONU $ADRES
done
Sanirim bu isinizi gorur Taner bey.
Dosya adi adresler olsun
cat adresler | x.sh
seklinde kullanabilirsiniz.
Password degistirme olayi birazdaha karmasik olabilir.
Eger sistemin kendi passwd komutu kullanilirda, kontrol bence daha zor olur.
ama ufacik bir C kodu ile, crypt fonksiyonun kullanan bir program yapilirsa,
perl yada shell ile yapilabilir.
Eger gerekiyorsa uzerinde ugrasabilirim.
-- Necati Ersen SISECIListeden cikmak icin: unsub linux mesajini listeci@bilkent.edu.tr'a gonderiniz. Lutfen Listeci icin MIME / HTML / Turkce Aksan kullanmayin. Liste arsivinin adresi: http://listweb.bilkent.edu.tr/