___linux/shell
linux
舞小潮
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
shell实现并发执行三个耗时的程序(python)
#!/bin/sh###################. /etc/profile. ~/.bash_profile##################加载用户配置环境es=("" "s2" "s3")for ((i=0;i<3;i++))do{cd /data/home/shuju/${es[i]}#if [[ ${es[i]} = "" ]]if [ ${i} -eq 0 ]then python test.py allelse python te...原创 2021-08-03 11:08:52 · 277 阅读 · 0 评论 -
shell实现每10分钟保存一个dump包,循环清除2小时之前的包
#!/bin/bashecho "wxc_dump.sh is running!"#抓包600秒保存一个包以时间命名tcpdump -i ens160 -s0 -G 600 -Z root -w ./%Y%m%d_%H%M%S.pcap &#while条件括号里面不能少两个空格#find当前路径所有后缀.pcap,文件内容最后修改时间比当前大于120分,然后删除。{}代表find到的文件\...原创 2018-05-14 11:15:26 · 1614 阅读 · 0 评论 -
-bashNo such file or directory(运行shell脚本报错)
今天写了一个shell脚本,然后在执行的时候报错,脚本内容很简单,仅供测试:Shell代码 #!/bin/sh echo "test shell " 具体报错信息如下:Shell代码 [root@localhost test]# ./test.sh -bash: ./test.sh: /bin/sh^M: bad interpreter: No such file or direc...转载 2018-05-13 16:20:45 · 21917 阅读 · 0 评论 -
linux/shell学习
http://c.biancheng.net/cpp/view/7005.html原创 2021-01-27 09:51:33 · 610 阅读 · 1 评论
分享