摘要:
exit命令用于退出当前shell,在shell脚本中可以终止当前脚本执行。 常用参数格式:exit n退出。设置退出码为n。(Cause the shell to exit with a status of n.) 格式:exit退出。退出码不变,即为最后一个命令的退出码。(If n is omi 阅读全文
posted @ 2019-08-21 19:37
anobscureretreat
阅读(318)
评论(0)
推荐(0)
摘要:
#!/bin/bash if [ -d "report" ];then rm -rf report else : fi if [ -d "html" ];then : else mkdir html fi if [ -d "case" ];then cd case else mkdir case cd case fi pytest --alluredir=../report if [ -d ".. 阅读全文
posted @ 2019-08-21 17:30
anobscureretreat
阅读(150)
评论(0)
推荐(0)
摘要:
#参考:#https://www.runoob.com/python3/python3-smtp.html#https://www.runoob.com/python/python-email.html阿里云 smtp 服务配置https://help.aliyun.com/knowledge_de 阅读全文
posted @ 2019-08-21 17:27
anobscureretreat
阅读(153)
评论(0)
推荐(0)
摘要:
#生成公钥ssh-keygen -t ed25519 -C "xxx@tianwang.com"#拷贝公钥pbcopy < ~/.ssh/id_ed25519.pub 在网页 user settings -> ssh keys 页面,粘贴公钥 本地端创建仓库mkdir projectcd proje 阅读全文
posted @ 2019-08-21 16:06
anobscureretreat
阅读(389)
评论(0)
推荐(0)
摘要:
生成requirements.txt文件pip freeze > requirements.txt 安装requirements.txt依赖pip install -r requirements.txt 参考:https://www.cnblogs.com/zelos/p/7439599.htmlh 阅读全文
posted @ 2019-08-21 16:02
anobscureretreat
阅读(306)
评论(0)
推荐(0)
摘要:
参考: https://www.runoob.com/linux/linux-shell-variable.html 阅读全文
posted @ 2019-08-21 11:20
anobscureretreat
阅读(8439)
评论(0)
推荐(0)
摘要:
参考: https://www.cnblogs.com/37yan/p/6962563.html 阅读全文
posted @ 2019-08-21 11:09
anobscureretreat
阅读(387)
评论(0)
推荐(0)
摘要:
在shell脚本中“:”是空命令,表示什么都不做类似于python中的pass 阅读全文
posted @ 2019-08-21 10:28
anobscureretreat
阅读(2639)
评论(0)
推荐(0)

浙公网安备 33010602011771号