![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 8345 阅读 · 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 · 1602 阅读 · 0 评论