Open Command In New Terminal Window
Hi There sorry for reposting this I kinda miscategorized the last one
Im tring to open 4 different xterm windows with different commands in them from one script. Anybody know how to do this? |
From 'man xterm':
Quote:
Code:
#!/bin/bash |
Quote:
Thank you much. Thats just what I was looking for. Shortly after reading this I also found out how to do it in gnome-term. Anways thanks agian it helped alot. |
open commands in new xterms
Quote:
xterm -e ls & xterm -e date & xterm -e pwd & When I run the script, it opened up three terminals but they fade away, I'm not sure whether they has excuted commands. Any idea? thanks, Laura |
Quote:
Code:
xterm -e ls\;bash & |
Thanks a lot, I've tried it and it worked with xterm. I have changed my script to use gnome-terminal instead of xterm, somehow bash command won't work with gnome-terminal, I wonder why?
Thanks a lot! |
Quote:
Code:
gnome-terminal -e "bash -c ls\;bash" |
It works very well, Thanks a lot!
|
All times are GMT -5. The time now is 10:15 AM. |