On Fri, 22 Oct 2004, Adam Saeed wrote:

> i want to write a script that automatically call telnet

If you *really* want telnet, use Net::Telnet

But --

> and do some
> stuff and exit. e.g
> telnet 
> open <ip addres> <port>
> e.g port = 25

-- that's the SMTP port. If you're trying to do mail programming, you 
should probably use one of the mail related modules.

Either way, you should NOT do this by a series of system() calls. 

That's just silly! :-)

> system("mail to: [EMAIL PROTECTED]");

If you're trying to work with Gmail, maybe this is what you need:

<http://cpan.org/modules/by-module/Mail/Mail-Webmail-Gmail-1.00.readme> 

What are you really trying to do here? So far, you've chosen a very 
peculiar path to get ...somewhere... but I'm not clear on what you're 
actually trying to get done. Maybe if that were clearer it would be 
possible to make some more constructive suggestions...



-- 
Chris Devers

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to