会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
萧飞IDO
2017年8月7日
linux exec使用小结
摘要: 一、exec 总结 exec命令 作用 exec ls 在shell中执行ls,ls结束后不返回原来的shell中了 exec <file file中的内容作为标准输入(替代STDIN) exec >file 将标准输出写入file(替代STDOUT) exec 3<file 将file读入到文件描
阅读全文
posted @ 2017-08-07 21:00 萧飞IDO
阅读(9723)
评论(1)
推荐(0)
linux 日志文件
摘要: # logfile logDate=`date "+%Y%m%d%H%M%S"` logfile=${read1}_${logDate}.log set -x #打开命令追踪,同时显示执行命令和命令结果 exec >$logfile 2>&1 #重定向所有输出文件至$logfile文件中, 但是ec
阅读全文
posted @ 2017-08-07 20:38 萧飞IDO
阅读(164)
评论(0)
推荐(0)
导航
博客园
首页
新随笔
联系
订阅
管理
公告