1

How can I open pantheon-terminal with starting command to be executed? For example something like pantheon-terminal --start-with echo "Hello World!" should open new terminal window and execute the echo "Hello World!" command in it.

Is it possible to make something like that?

  • Can you expand on your use case as it's possible to have commands run when a shell starts (e.g. .bashrc), but your use case may be specific to using a terminal window in a particular context? – ianmjones Jun 4 '18 at 8:34
  • I don't want to run command everytime terminal starts. I wanted to make script that prepares my web testing enviroment (run selenium and node.js server). I wanted each of then run in separate terminal window for crash reports etc. – ZobekPL Jun 5 '18 at 9:06
  • If your issue is resolved, please mark the answer as Answer that helped solving your problem. If you have solved this on your own, please write it down as answer and mark it so. – Hasan Jan 9 at 11:35
2

With io.elementary.terminal, which seems to be the new name, you might be able to do this using the -e flag. I've done something very similar with xfce4-terminal -e before, maybe that helps when looking for examples around the web. You can find this option in the manpage.

  • how do you pass commands to it -e doesn't work. -T doesn't set title either. – tatsu Apr 15 at 15:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.