shell常用命令
来源:互联网 发布:filco minila mac 编辑:程序博客网 时间:2024/06/16 16:48
循环时间
#!/bin/sh
startdate=`date -d "$1" +%Y-%m-%d`enddate=`date -d "$2" +%Y-%m-%d`
while [[ $startdate < $enddate ]]
do
sh /var/lib/hadoop-hdfs/sunbo/ghost/xdq/lp/old_data/etl_shell.sh $startdate $startdate
startdate=`date -d "+1 day $startdate" +%Y-%m-%d`
done
查看和杀死后台进程
ps -aux | grep "check_detail.sh"
ps -aux | grep "check_detail.sh" | awk '{print $2}' | xargs kill -9
阅读全文
0 0
- shell常用命令
- shell 常用命令
- shell 常用命令
- shell常用命令
- shell 常用命令
- shell常用命令
- shell常用命令
- shell常用命令
- shell常用命令
- shell常用命令
- shell常用命令
- shell 常用命令
- shell 常用命令
- Shell常用命令
- Shell 常用命令
- shell 常用命令
- shell常用命令
- shell常用命令
- linux下EOF写法梳理
- Codeforces 839D-Winter is here
- js动态创建svg
- Android基础_传感器的使用 Fragment入门(十二)
- spring boot 报错:Your ApplicationContext is unlikely to start due to a @ComponentScan of the default p
- shell常用命令
- Hibernate中session.save()返回值是0
- JS原生数据双向绑定
- .Net单点登录详解 (SSO)
- 一段观察者对象(MutationObserver)的使用
- 数据库事务
- 关于数据区中存放的东西
- java基础知识:this关键字
- leaflet加载tms服务