shell 脚本输出的系统信息写入mysql数据库
来源:互联网 发布:手机对比软件 编辑:程序博客网 时间:2024/05/23 00:32
mysql>create table kk(Amount int,IPAddress varchar(20),InsertDatetime timestamp default current_timestamp);mysql>load data local infile "/root/aa" into table kk fields terminated by ' ';#################################!/bin/shnetstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n | awk '{if($1 > 1) print $1,$2}' > /root/aainscript="load data local infile '/root/aa' into table kk fields terminated by ' ';"mysql -u User -pPassword -DDatabase -e "${inscript}"rm -f /root/aa################################chmod 755 mytest
0 0
- shell 脚本输出的系统信息写入mysql数据库
- 综合输出系统信息的简单脚本
- shell脚本获取输出到终端的所有信息
- 自动备份 MySQL 数据库的 shell 脚本
- linux系统获取基础硬件信息的shell脚本
- mysql数据库备份shell脚本
- shell脚本备份mysql数据库
- shell脚本操作mysql数据库
- shell脚本操作mysql数据库
- shell脚本操作mysql数据库
- shell脚本操作mysql数据库
- shell脚本操作mysql数据库
- shell脚本操作mysql数据库
- shell脚本备份mysql数据库
- shell脚本操作mysql数据库
- SHELL脚本操作mysql数据库
- shell脚本备份mysql数据库
- mysql数据库输出字段信息
- 内容提供者的用法
- 第一次文档总结
- iOS 6 & iOS7+ Splash
- USBの基礎知識 ――パケットのフォーマットからプロトコルの詳細まで
- 查看特征的表
- shell 脚本输出的系统信息写入mysql数据库
- eclipse +maven+web应用 +tomcat 找不到jar包
- Java将汉字转换为拼音
- New Label of Cocos2d-x v3.0
- ubuntu httpserver 安装配置(apache+mysql+php)
- Xampp上设置VirtualHost出现403的问题(windows上)
- FTP自动登录
- 在Eclipse中如何对整个项目重新编译
- 2014.12.13