Hola a todos.
Veréis, estoy creando un script, y en ese script necesito abrir otra consola, y en esa consola ejecutar ciertos comandos. No se si me entendéis, consigo al ejecutar el script abrir otra consola pero no consigo ejecutar ni escribir nada en esa terminal.
Saludos
y si muestras el script para dar una idea?, entiendo por donde vas pero no como lo haces.
echo hola
start cmd /k echo hola
Citary si muestras el script para dar una idea?,
+1
Un recurso útil es
xterm
No tienes permitido ver enlaces.
Registrate o Entra a tu cuenta
y si muestras el script para dar una idea?, entiendo por donde vas pero no como lo haces.
echo hola
start cmd /k echo hola
Buenas me pillas en la calle no puedo enviarlo, era eso justo pero en linux.
Saludos.
Citargnome-terminal -e command
or
xterm -e command
or
konsole -e command
Pretty much
terminal -e command
To make the terminal stay when the command exits:
In konsole there is a --noclose flag.
In xterm, there is a -hold flag.
In gnome-terminal, go to Edit -> Profile Preferences -> Title. Click the Command tab. Select Hold the terminal from the drop-down menu labelled When command exits. You should create a new profile for that and execute with
gnome-terminal --window-with-profile=NAMEOFTHEPROFILE -e command
Checa este link:
EJEMPLO (https://askubuntu.com/questions/46627/how-can-i-make-a-script-that-opens-terminal-windows-and-executes-commands-in-the)