P
P
pixik2015-11-19 22:35:27
linux
pixik, 2015-11-19 22:35:27

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:

результат работы скрипта ....
:$

Thank you =)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
pixik, 2015-11-20
@pixik

~/.bashrc

S
Stanislav Silin, 2015-11-19
@byme

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 question

Ask a Question

731 491 924 answers to any question