This is probably insanely simple but I'm sort of new to this and have no idea what I'm doing. Very simply, I have MouseON.sh that when ran, I want it to open a terminal, run a command, then close the terminal it opened. (yes I know that seems redundant but for my purposes this is what I need). I've googled and looked around this site but can't really find something I can understand due to noobery.
#!/bin/sh gnome terminal -x sh -c xinput set-prop 10 "Device Enabled" 0
Which opens and closes the terminal nicely, but doesn't actually run 'xinput set-prop 10 "Device Enabled" 0'
Also, yes I'm aware it's called "MouseON" and setting it to 0 would turn the mouse off, I have it set to that for testing purposes.
I'm also aware there are other ways to turn the mouse on and off but again for my purposes this is what I need.
Thanks in advance.