How to execute a command in newly open terminal(gnome-terminal) in scripting ?

Jordon Bedwell jordon at envygeeks.com
Thu Jun 30 10:54:07 UTC 2011


On 6/30/2011 5:46 AM, Carl Friis-Hansen wrote:
> You might need to do it on the same line, like:
> gnome-terminal -e "ls -l"
> 
> If you want really good control, you could make a small C or C++ program.

Or you could do it in Python faster.

from os import system
system('ls -la')




More information about the ubuntu-users mailing list