Basically I want to make a file that when I open it normally, it opens a new terminal and runs a set command that I preset into it.
Here's an example:
I open a file with gedit
, I type in, Sensors
, save it, close the file and then open it normally. When it opens, it automatically makes a new terminal and runs the command Sensors
.
I have been trying to find this for a while and I haven't been able to find much at all.
I've tried making it a .sh file and I've added #!/bin/bash
and #!/bin/sh
, but neither of them seemed to work.
sensors
, notSensors
.