【发布时间】:2015-10-04 21:59:24
【问题描述】:
我有以下 bash 脚本。
#!/bin/bash
while :
do
sleep 2
infiniteProgramm -someParametrs
sleep 10
#in this line I need to stop my infiniteProgramm with bash command (SIGINT) (like Ctrl+C, but automatic)
clear
done
如何向我的infiniteProgramm 发送SIGINT 信号?
【问题讨论】: