Re: Shell Script help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/24/07, Cassian Luppu <cassian.luppu@xxxxxxxxx> 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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux