Sorry for my probably very naive question.
What I mean is: how to create an executable script/bash file that would run more complex commands, commands which must normally be put in a terminal?
Specifically, I am referring to the following commands:
- Learned about it from here:
DRI_PRIME=1 glxgears -info
That would start glxgears
and put to work the ATI discrete card. Then I can monitor its temperature etc. But when I run it from terminal, I get this:
While when I run it with the script
#!/bin/bash
DRI_PRIME=1 glxgears -info
only the gears window is visible, not the other one with text.
I would like to be able to use a bash file and have the first result, and then run the file from a launcher.
Considering this page on aria2
and webgui-aria2
, aria2
is started in that context by running in terminal a long command:
touch /path/to/download/folder/session.txt && aria2c --enable-rpc --rpc-listen-all --save-session=/path/to/download/folder/session.txt --input-file=/path/to/download/folder/session.txt -x16 -s16 -k1M --dir=/path/to/download/folder
How to run that with a script (that I would then execute from a launcher) and have the same result, the same info?
A script like so (adapted to my download folder)
#!/bin/bash
touch /home/cip/Downloads/aria2/session.txt && aria2c --enable-rpc --rpc-listen-all --save-session=/home/cip/Downloads/aria2/session.txt --input-file=/home/cip/Downloads/aria2/session.txt -x16 -s16 -k1M --dir=/home/cip/Downloads/aria2
gives nothing, while thhe programs starts.
(I'm in Xubuntu 14.04).
glxgears
script? You could create a launcher for that too, and setTerminal=true
in it.glxgears
script.Terminal=true
in a .desktop file (the launcher you create for the script).