Register
It is currently Thu Apr 24, 2014 8:04 am

Script to open up two terminals


All times are UTC - 6 hours


Post new topic Reply to topic  [ 4 posts ] 
Author Message
 PostPosted: Fri Jul 18, 2008 8:54 am   

Joined: Fri Jul 18, 2008 8:51 am
Posts: 2
Hello,

I would like a script that would allow me to open up one terminal and run a command, then open up another terminal and run another command.

I am trying to put the script into an executable file on my desktop so that i can just doubleclick it and it will open up two terminals and run the commands.

So far i have been unsuccessful as it consistently tries to run both commands in the same terminal window.

Any help is appreciated, thanks!


Top
 Profile  
 PostPosted: Sat Jul 19, 2008 11:45 am   

Joined: Sat Jul 19, 2008 11:42 am
Posts: 2
Hello,

a posible solution to your request:

Code:
#!/bin/bash
konsole -e top
konsole -e top


Regards,


Top
 Profile  
 PostPosted: Mon Jul 21, 2008 5:12 pm   

Joined: Fri Jul 18, 2008 8:51 am
Posts: 2
savus wrote:
Hello,

a posible solution to your request:

Code:
#!/bin/bash
konsole -e top
konsole -e top


Regards,


Thank you for the reply!

I'm on a mac and don't have konsole installed. Can i get it installed? If not, any other suggestions?


Top
 Profile  
 PostPosted: Mon Jul 21, 2008 11:07 pm   

Joined: Sat Jul 19, 2008 11:42 am
Posts: 2
Hi,

I sugest this: find out is the name of our terminal ("konsole" in my case). Then make a man "your console". It should be there a parameter that tels you how to open that "konsole". In my case was "-e".

Good luck!


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP