PDA

View Full Version : execute a command in new terminal


mokkai
September 20th, 2007, 06:33 AM
any idea to open a new

"gnome-terminal ,and execute a command"
on that terminal

fron base terminal

i tried like this "gome-terminal -e,-execute =ls --window"

but execution output is not shown in newly created terminal

why ??

BuffaloX
September 20th, 2007, 04:09 PM
Closest I can get is:

gnome-terminal -x sh -c "cal -3; sleep 5"

Which shows the calendar for 5 seconds, then the terminal terminates itself.

Ramses de Norre
September 20th, 2007, 08:43 PM
Closest I can get is:

gnome-terminal -x sh -c "cal -3; sleep 5"

Which shows the calendar for 5 seconds, then the terminal terminates itself.

gnome-terminal -x bash -c "cal -3;bash"

mokkai
September 21st, 2007, 01:48 AM
thats i want...
thank you frineds....