plink_path="C:/plink.exe"'plink.exe路径 username="username"'用户名 password="password"'密码 host="192.168.0.1"'Unix/Linux服务器地址 command="ls"'要执行的命令 SetoShell=...
分类:
其他好文 时间:
2014-06-27 21:52:26
阅读次数:
293
做了一个html E-Letter项目. 邮件模板采用jinja2, html 邮件内容生成简直太爽了. 整个项目开发只用了2个小时, 调试却花了大半天时间, 生成的邮件总是发不出去. 于是, 打开 smtp 的debuglevel, 发现邮件已经mail queue了, 但就是收不到邮件. mai...
分类:
其他好文 时间:
2014-06-27 00:06:14
阅读次数:
367
import java.util.Date;import java.util.Properties;import javax.mail.Authenticator;import javax.mail.Message;import javax.mail.MessagingException;impor...
分类:
编程语言 时间:
2014-06-26 23:26:04
阅读次数:
287
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net.Mail;namespace SendMessage{ class SendEmail {...
分类:
其他好文 时间:
2014-06-25 12:04:19
阅读次数:
251
Thisshorttutorialisintendedtohelpnewbieswhodon’tknowhow
tofindouttheLinuxdistributionname,versionandkerneldetailsvia
commandline.Method1–Distribution&VersionDetails
Command:cat/etc/*-releaseSampleOutputOnCentOS6.4:CentOSrelease6.4(Final)SampleOutputO..
分类:
系统相关 时间:
2014-06-25 10:41:11
阅读次数:
306
OS X 10.9 Mavericks正式发布,免费更新,立即去更新看看效果。不过升级后安装命令行工具(Command Line Tools)时发现官网没有clt的下载安装包了,原来改了,使用命令在线安装。打开终端,输入命令:xcode-select --install选择“安装”,然后同意安装协议...
分类:
其他好文 时间:
2014-06-25 09:25:35
阅读次数:
222
1.使用if-then语句
结构化命令中,最基本的类型就是if-then语句。if-then语句有如下格式:
if command
then
commands
fi 如果你在使用其他编程语言的if-then语句,这种形式可能会让你有点困惑。在其他编程语言中,if语句之后的对象是一个等式来测试是TRUE还是FALSE值。如果该命令的退出状态码是0(该命令成功运行),位于...
分类:
其他好文 时间:
2014-06-25 08:49:26
阅读次数:
263
1.姓名验证
ereg("[a-zA-Z_]",$_POST['username'])
2.日期验证
ereg("[0-9]{4}-[0-9]{2}-[0-9]{2}",$_POST['birthday'])
3.E-mail地址验证
ereg("^[a-zA-Z0-9_.]+@([a-zA-Z0-9_]+.)+[a-zA-Z]{2,3}$",$_POST['email'])...
分类:
其他好文 时间:
2014-06-25 07:58:31
阅读次数:
262
oracle 11g 中 (oracle 10g) crsctl 的 替换命令
Deprecated Command
Replacement Commands
crs_stat
crsctl check cluster -all
crsctl stat re...
分类:
数据库 时间:
2014-06-25 07:15:02
阅读次数:
379
一般使用mail命令发送邮件时,默认发件人为本地用户root或其他通过修改/etc/mail.rc文件来指定email发件人使用外部SMTP服务器(163、126等)来发送邮件;在/etc/mail.rc文件中添加发件人的邮箱认证信息:vi/etc/mail.rcsetfrom=zrer90@163.comsetsmtp=smtp.163.comsetsmtp-auth-u..
分类:
系统相关 时间:
2014-06-25 06:30:50
阅读次数:
283