使用 python 通过 smtp 密码验证发送邮件
使用 python 通过 smtp 密码验证发送邮件的山寨代码如下,perl版本见这里。
Read the rest of this entry »
使用 python 通过 smtp 密码验证发送邮件的山寨代码如下,perl版本见这里。
Read the rest of this entry »
GNU 的 date 命令有很强大的 -d 功能,比如 date -d “2 days” 可以获取两天之后的日期,但 solaris 没有。所以用 perl 实现一下,用于在脚本中使用。如:
perl -MPOSIX -e 'print strftime "%Y-%m-%d %H:%M:%S\n", localtime(time() + 86400)'
本文是 Writing Robust Bash Shell Scripts 的半翻译半总结,并加入了工作中的一点经验。
Read the rest of this entry »
Supported by Webinit Consulting