FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 06-30-2011, 10:54 AM
Jordon Bedwell
 
Default How to execute a command in newly open terminal(gnome-terminal) in scripting ?

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')

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 11:11 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org