2005-8-4 10:53
afantict
<a href='http://community.csdn.net/Expert/topic/4188/4188024.xml?temp=.4588892' target='_blank'>http://community.csdn.net/Expert/topic/418...l?temp=.4588892</a>
2005-8-4 13:06
afantict
假如有个perl脚本,名字是mail.pl<br /><br />#!usr/bin/perl -w<br /><br />..<br />sendattachmail;<br />..<br /><br />sub sendattachmail {<br /> open(SENDMAIL, "|$sendmail"); <br /> print SENDMAIL $reply_to;<br /> print SENDMAIL $subject;<br /> print SENDMAIL $to;<br /> print SENDMAIL "Content-type: text/plain\n\n";<br /> print SENDMAIL $content;<br /> close(SENDMAIL);<br />}<br /><br /><br />另外一个perl脚本,假如叫test.pl,它调用mail.pl<br /><br />mail.pl;<br /><br />我的问题是,怎么写代码,才能在test.pl中判断sendmail是否成功?<br />超级感谢,帮帮忙!<br />
2005-10-13 14:26
xyj889q1
hi!!~~~~~~~~~~~
hi
2005-10-31 23:24
aozhi2nd
给个返回值
2005-11-8 22:10
flyrob
很久没接触perl 都忘记完了
页:
[1]
Powered by Discuz! Archiver 5.5.0
© 2001-2006 Comsenz Inc.