I have transmission as a start-up application. I use the command
transmission -m to start it up. How can I quit transmission automatically when I'm shutting down?
The problems I'm facing is how to bring the running program to the foreground and send a quit command to it with a shell script? Or send a quit command without bringing it to the foreground?