如何每秒执行任务? 没有直接的解决方案。因为在Cron中,最小的时间帧是分钟,不能进行每秒钟执行某个任务。 # 方案一:systemd Timer 可以使用systemd Timer,它支持以秒为时间帧来执行任务。 # 方案二:Shell Script 在Cron中,最小的时间帧是分钟。因此可以写一 ...
分类:
其他好文 时间:
2021-04-24 13:38:24
阅读次数:
0
文章目录python脚本调用shell命令os.system()os.popen()subprocess.call()subprocess.Popen()commandspython脚本传参数给shell命令python脚本获取命令行用户输入参数python传参数给shell命令python传参数给 ...
分类:
编程语言 时间:
2021-04-24 13:19:00
阅读次数:
0
powershell快捷打开方式 powershell打开:在任意目录下,按住shift,然后右键,选择“在此处打开powershell”即可 常用dos命令 #盘符切换 d:\ ...
分类:
其他好文 时间:
2021-04-23 12:05:00
阅读次数:
0
1.概述 # JavaScript是一门世界最流行的脚本语言 # Java与JavaScript并没有直接关系,只是命名上有点相似,本质上是两种完全不同的语言 # JavaScript被设计出来仅仅花了10天 一个合格的后端人员,必须要精通JavaScript 2.历史 地址: https://ww ...
分类:
编程语言 时间:
2021-04-23 12:04:49
阅读次数:
0
1、测试1 [root@centos7 test2]# i=0 [root@centos7 test2]# max=5 [root@centos7 test2]# while((i<max));do echo $i;((i++));done 0 1 2 3 4 ...
分类:
系统相关 时间:
2021-04-23 12:03:54
阅读次数:
0
1、截屏 adb shell screencap -p /sdcard/a.png 2、录屏 adb shell screenrecord /sdcard/a.mp4 ...
分类:
数据库 时间:
2021-04-23 11:57:08
阅读次数:
0
1、测试1 [root@centos7 test2]# ls a.txt [root@centos7 test2]# if [ -e a.txt ]; then echo "exist";else echo "no nxist"; fi exist [root@centos7 test2]# if ...
分类:
系统相关 时间:
2021-04-23 11:53:02
阅读次数:
0
Prometheus部署: 安装 go 语言环境 由于Prometheus是用golang开发的,所以首先安装一个go环境,Go语言是跨平台,支持Windows、Linux、Mac OS X等系统,还提供有源码,可编译安装 二进制包下载地址 wget https://dl.google.com/go ...
分类:
其他好文 时间:
2021-04-23 11:51:38
阅读次数:
0
Prometheus是最初在SoundCloud上构建的开源系统监视和警报工具包 。自2012年成立以来,许多公司和组织都采用了Prometheus,该项目拥有非常活跃的开发人员和用户社区。现在,它是一个独立的开源项目,并且独立于任何公司进行维护。为了强调这一点并阐明项目的治理结构,Promethe ...
分类:
其他好文 时间:
2021-04-23 11:51:26
阅读次数:
0
linux shell脚本中流程控制语句 if、for、while、case 1、if语句 [root@centos7 test2]# ls test.sh [root@centos7 test2]# pwd /home/test2 [root@centos7 test2]# cat test.sh ...
分类:
系统相关 时间:
2021-04-22 16:20:40
阅读次数:
0