[SOLUCIONADO] Pregunta con script

Iniciado por Rocky91, Julio 03, 2017, 08:27:31 PM

Tema anterior - Siguiente tema

0 Miembros y 1 Visitante están viendo este tema.

Julio 03, 2017, 08:27:31 PM Ultima modificación: Julio 09, 2017, 12:25:38 PM por xyz
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.

Código: batch
echo hola
start cmd /k echo hola
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login


Citary si muestras el script para dar una idea?,
+1

Un recurso útil es
Código: text
xterm


You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
y si muestras el script para dar una idea?, entiendo por donde vas pero no como lo haces.

Código: batch
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:

You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login