shell
ivhong
时代脉搏,趣味横生,互联互往,动力无穷
展开
-
mysql 比较工具(MAC)
原文来自(大胖博客)1. 安装软件a.(https://dev.mysql.com/downloads/connector/python/)[shell]brew cask install mysql-connector-python[/shell]b.(https://downloads.mysql.com/archives/utilities/)[shell]brew cas...原创 2019-11-28 09:22:54 · 1407 阅读 · 0 评论 -
crontab 重定向错误日志 加上时间
(原文链接 http://ivhong.com/crontab-%E9%87%8D%E5%AE%9A%E5%90%91%E9%94%99%E8%AF%AF%E6%97%A5%E5%BF%97-%E5%8A%A0%E4%B8%8A%E6%97%B6%E9%97%B4/)在开发中,我们避免不了写crontab脚本来异步执行一些东西,一般设置crontab用下面的方法*/1 * * *原创 2016-06-01 18:17:14 · 8287 阅读 · 0 评论 -
shell 版守护进程
本文地址: http://ivhong.com/shell-版守护进程/shell 实现守护进程,包含两个文件:1 ctl.sh 控制器文件2 run.sh 守护进程文件用法:1 按照注释修改 ctl.sh 要守护的进程命令2 ctl.sh [start | stop | restart]压缩包下载: 守护进程原创 2016-06-28 16:16:15 · 408 阅读 · 0 评论 -
mac & liunx ssh 自动登录
#!/usr/bin/expect -fset timeout -1spawn ssh [email protected] "*assword:*"send "password\n"interact原创 2016-12-06 13:51:58 · 396 阅读 · 0 评论 -
mac 终端添加颜色
#Tell ls to be colourfulexport CLICOLOR=1export LSCOLORS=Exfxcxdxcxegedabagacad # Tell grep to highlight matchesexport GREP_OPTIONS='--color=auto' export TERM="xterm-color"PS1='\[\e[0;33m\]\u\原创 2016-12-06 13:56:08 · 587 阅读 · 0 评论