Here is what you have to do (assuming the script will be named myscript, your command is mycomm and has option -opt):
- in a Terminal (CTRL+ALT+T) type gedit myscript (or another editor instead of gedit)
- copy and paste the following code inside:
#! /bin/bash
mycomm -opt - save and close
- in the Terminal type chmod +x myscript to make it executable
- move the file in /usr/bin to make it runnable: sudo cp -a myscript /usr/bin
- add /usr/bin/myscript as command to the startup processes or to your customized keyboard shortcuts.
No comments:
Post a Comment