2024-09-28 23:23:33 发布
网友
我在Ubuntu中使用cron命令运行python程序:
05 23 * * * python /home/ahmed/Desktop/hello.py
如何停止程序运行?在
打开终端,运行
$ ps aux | grep hello.py
它会显示这样的输出-
其中NNNN是进程ID。然后执行-
$ sudo kill -9 NNNN
这会扼杀整个过程。如果你不想再这样做的话,就把它从cron中删除。在
打开终端,运行
它会显示这样的输出-
^{pr2}$其中NNNN是进程ID。然后执行-
这会扼杀整个过程。如果你不想再这样做的话,就把它从cron中删除。在
相关问题 更多 >
编程相关推荐