R
R
Ramil2015-07-24 09:53:07
linux
Ramil, 2015-07-24 09:53:07

How to launch konsole in kubuntu and immediately execute a command in it?

The task is this. Every time I start the system, I have to execute several commands in the console.
Of course, you can write a bash script and put it on autoload, but not everything is so simple. After executing the commands, I need this terminal.
For example.
1. Start vagrant up
2. Connect to vagrant ssh
3. Run commands from under vagrant.
And keep the window open.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Lebedev, 2015-07-24
@vafarulez

to autoload:
konsole -e /bin/bash -c /home/user/bin/script.sh
and write your commands in the script.
Checked on fedora c kde, it works.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question