![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
UNIX
躁动的青年
招女朋友
展开
-
AIX上解压缩.tar.Z, .tar.gz, .zip及.tgz
.tar.Z file format 压缩 # compress filename.tar 解压 # zcat filename.tar.Z | tar -xvf -.tar.gz file format 压缩 # tar cvf - folder | gzip > filename.tar.gz 解压 # gunzip -...原创 2020-05-15 08:45:21 · 732 阅读 · 0 评论 -
AIX UNIX获取前一天日期
#!/bin/sh#today=`date +%Y%m%d`#todayHyphen=`date +%Y-%m-%d`year=`date +%Y`month=`date +%m`day=`date +%d`getYesterday(){ #to int month=`expr $month + 0` day=`expr $day - ...原创 2020-05-15 08:49:45 · 591 阅读 · 0 评论 -
AIX UNIX crontab 每几分钟执行,5分钟,10分钟,15分钟
每分钟执行* * * * * /bin/bash /home/test/test.sh > /dev/null 2>&1不发邮件> /dev/null 2>&1Linux每5分钟执行*/5 * * * * /bin/bash /home/test/test.sh > /dev/null 2>&1...原创 2020-05-15 08:49:53 · 1088 阅读 · 0 评论 -
crontab里执行shell找不到db2数据库
AIX UNIX下得先执行crontab -e 编辑后再执行crontab -l 查看,要是先执行crontab -l 会报错,报错SQL1013N The database alias name or database name "DBNAME" could not be found.解决办法在脚本里加入执行.profile,加入“环境变量”...原创 2020-05-15 08:50:01 · 240 阅读 · 0 评论