Shell Script help

Andrew Parker andrewparker at bigfoot.com
Fri Aug 24 15:25:41 UTC 2007


On 8/24/07, Cassian Luppu <cassian.luppu at gmail.com> wrote:
> I need to connect to a remote smtp server, I have username and password to
> log in using, for instance telnet.
> What I want is a shell script to log into the server (using telnet), then
> send an email with a subject, with a certain sender and always to the same
> person (basically a email set up to recieve alerts) and with a small text.
> All should be done using the telnet commands, like MAIL FROM, RCPT TO,
> DATA...
>
> My guess is that I should use expect, shouldn't I?

yes

> Any example or aproachs will be more than appreciated.

get autoexpect to generate the initial expect file, then modify it accordingly




More information about the users mailing list