我使用的是Red Hat Enterprise Linux Server 7.4 (Maipo)。我已经配置了一个cron任务,通过shell脚本每隔5分钟运行一次Jar文件。几天后,在检查文件夹( shell脚本文件所在的文件夹)时,我发现生成了数百个attach_pid文件。为什么要创建这个文件,以及如何停止它?
我正在编写一个python脚本来ssh到linux服务器中,并执行一个已经存储在linux服务器上的shell脚本。下面是我的代码到目前为止的样子 'cd into the directory of the shell/running the shell script',
process = subprocess.Popen(