Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simulate KeyboardInterrupt with fabric

How do I fire a Ctrl+C with fabric, in other words is it possible to trigger KeyboardInterrupt manually via bash?

like image 854
user2298943 Avatar asked Apr 15 '26 15:04

user2298943


1 Answers

ctrl+c generates a SIGINT signal.

You can send a signal with kill -SIGINT pid where pid is the process id. you wish to signal. kill is a Bash built-in.

like image 173
cdarke Avatar answered Apr 17 '26 03:04

cdarke



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!