DEV Community

rafaone
rafaone

Posted on

executando comando em um novo terminal

original post 01/12/2009 rafaelgimenes.net

Dica rápida que salvou minha vida hoje em uma aplicação, é executar com comando em um novo terminal. Geralmente é a opção “-e” do seu terminal.
Eu uso o xterm, hoje tive que fazer um shell script que teve que ser aberto em uma nova janela, então usei essa instrução:

xterm -e comando &
Enter fullscreen mode Exit fullscreen mode

Dentro do meu shell script ficou mais ou menos assim:

xterm -e sh segundosh.sh &;
Enter fullscreen mode Exit fullscreen mode

Não posso usar o meu exemplo que fiz por se tratar de um sw da empresa, e um exemplo didático não me vem a cabeça mas fica a dica.

Top comments (0)

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay