04 2022 档案
摘要:为当前用户创建cron服务 1. 键入 crontab -e 编辑crontab服务文件 例如 文件内容如下: */2 * * * * /bin/sh /home/admin/jiaoben/buy/deleteFile.sh 保存文件并并退出 */2 * * * * /bin/sh /home/a
阅读全文
摘要:#!/bin/bash#登录权限source /opt/hadoopclient/bigdata_env#输入账号密码/usr/bin/expect <<-EOFset time 5spawn kinit tianexpect {"Password" {send "Huawei#123\r"}}ex
阅读全文
摘要:今天在看cmake编程的时候遇到了if [ $? -eq 0 ]; then,对于里面的变量不是很清楚就去上网搜索一下变量及语句的含义。下面是我整理的内容: $0: shell或shell脚本的名字 $*:以一对双引号给出参数列表 $@:将各个参数分别加双引号返回 $#:参数的个数 $_:代表上一个
阅读全文
摘要:import pandasimport pymysqlimport configimport pandas as pdfrom pandas import DataFrameimport openpyxldef gogo(): writer = pd.ExcelWriter('./结果/jieguo
阅读全文