Linux shell
iteye_17367
这个作者很懒,什么都没留下…
展开
-
shell连接mysql建立简单的md5字典
[code="shell"] #!/bin/bash USERNAME="root" PASSWORD="" DB="mydb" TABLE="dict" #创建数据库 create_db="create database if not exists $DB" mysql -u $USERNAME -e "$cre原创 2011-09-30 13:10:19 · 129 阅读 · 0 评论 -
脚本自动登录Linux服务器
[code="shell"] #!/usr/bin/expect set timeout 30 spawn ssh luxiao@host expect "*assword:" send "password\r" interact [/code] 1. [#!/usr/bin/expect] 这一行告诉操作系统脚本里的代码使用那一个shell来执行 注意...原创 2012-02-03 14:50:10 · 361 阅读 · 0 评论