Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Trigger interrupt with middle mouse button in Terminal

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
ulliroyal
Posts: 1
Joined: 2015-02-02 10:55

Trigger interrupt with middle mouse button in Terminal

#1 Post by ulliroyal »

Ctrl-c with middle mouse button (MMB) trigger in running bash script trigger.

Hello Cracks & Freaks,

The key combination Ctrl-C or "^C" with the keyboard triggered on a running bash script stands for "signal interrupt" (SIGINT) and terminates the process.
For my workflow in the test phase, it would be a great help if I could do that with the MMB-Buffer, followed by the modified script command:

Code: Select all

script runs
script runs
script runs
Signal interrupt and rerun with MMB trigger:

Code: Select all

^C; ./script.sh

modified script runs
modified script runs
does not work and 2 hours meta-crawlers:) did not help me

Perhaps you know the answer.
Thanks in advance

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Trigger interrupt with middle mouse button in Terminal

#2 Post by Head_on_a_Stick »

Maybe look at xdotool?

See man xdotool for usage.
deadbang

Post Reply