Linux
loulucy
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Linux里,shell脚本连接sftp
from subprocess import calldef main():cmd5 = “”“sftp -oIdentityfile=…openssh targetAddress <<EOTput filenameexitEOT”""call(cmd5,shell=True)if name == ‘main’:main()注意:EOT: end of text。...原创 2019-01-17 13:44:58 · 8485 阅读 · 0 评论 -
linux后台执行命令,以确保终端断掉程序不会断。
nohup command &exitThen the terminal will close.If you want to find this process and kill it due to some emergency, try "ps -aux|grep part_of_your_command " to find the PID, then “kill -9 PID” ...原创 2019-01-23 18:46:09 · 1659 阅读 · 0 评论
分享