Answer the question
In order to leave comments, you need to log in
How to execute a script during terminal startup?
Good time!
How can I make it possible to execute a script every time the terminal is opened and display the result of the script before the user prompt?
More or less like this:
результат работы скрипта ....
:$
Answer the question
In order to leave comments, you need to log in
For Linux Mint 17.2, I think under Ubuntu everything will be fine too.
1. Make a normal console application.
2. Open the file "/home/{{username}}/.profile".
3. At the end of the file, we launch our application. For example: "python /home/{{username}}/Develop/exp.py".
PS You may need to enable the "Run command as a login shell" checkbox in the "Properties->Title and Command" terminal settings
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question