1

How can I run several commands in succession when a key is pressed? For example,

"Command 1"
"Command 2"
"Command 3"
   Hotkey

Doesn't seem to work.

0
6

Associate a single command which runs the three commands successively. The command is always executed via a shell (specifically, via /bin/sh).

"Command 1; Command 2; Command 3"
  Control+F42
1
  • 1
    && can be used as well if the following command depends on the previous one to run (conditional succession) - it is the logical AND operator - if the first results in true the second runs, else not – user86041 Dec 30 '17 at 18:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.