[Israel.pm] sending ctrl-D

Yossi.Itzkovich at ecitele.com Yossi.Itzkovich at ecitele.com
Mon Aug 9 03:13:53 PDT 2004






Hi,

I have a script that runs on a station that has no mail services.  It
connects to a remote Unix host that is mail enabled and tries to send the
email from there.
I am using Net::Telnet, but I have troubles sending  the terminating
ctrl-D.  In Unix you end your mail by sending CTRL-D.
I tried:
my $t=new Net::Telnet .....

$t->print ("\004")
or
$t->print ("\cD")

Am I missing something ?

Thanks

Yossi




More information about the Perl mailing list