[CentOS] How to open several tabs in a gnome-terminal window and run a command in each tab?
Aug 5, 2011 at 9:31 pm
hi, bash is unavailable to me on my machine unfortunately
(it is a work machine) the command
must be sent in a tsch shell. any way to do this in tsch?
: From: Pete O\'Connell Because when the command exists, the gnome-terminal session exists... Best would be the following if you find out how to add your commands to the bash call... ? gnome-terminal --tab -e "bash -i" --tab -e "bash -i" Maybe someone will have an idea... Instead of the loops, you could use this script.sh: ? #!/bin/bash ? ls $* ? bash -i ? gnome-terminal --tab -e "/path/to/script.sh AAA" --tab -e "/path/to/script.sh BBB" JD
: From: Pete O'Connell Did you look at tcsh man page? If you did, you must have noticed that it accepts the same '-i' parameter as does bash. So did you just try to replace the bash calls with tcsh calls...? JD PS: It is strange that your CentOS server has no bash installed...
: Hi swapping out bash for tsch doen't work unfortunately. The window that gets created when you do this only stays open for a split second. You are right, bash is on the Centos server, it is just that the many custom environment variables at my workplace only work in a tsch shell. Anyone know a way of doing this using only tsch? Pete
: From: Pete O\\\'Connell Works for me with: ? $ cat test.sh ? #!/bin/tcsh ? ls $* ? /bin/tcsh -i ? $ gnome-terminal --tab -e "/path/to/test.sh AAA" --tab -e "/path/to/test.sh BBB" Be sure to use the script full path... JD
[CentOS] Set font and size in xterm
[CentOS] MiscFixed fonts in CentOS 5.5
[CentOS] Gnome terminal oddity
[CentOS] Remote nautilus, X display forwarding problem
[CentOS] question on virtual desktops
[CentOS] show a directory content in the same window
[CentOS] I have a test system that hangs hard...
[CentOS] GNU Screen Macro?
[CentOS] yum update via NX connection?
[CentOS] Xdefaults file.
6 of 9
Aug 3, '11 at 1:18a
Aug 16, '11 at 7:04a
3 users in discussion
Pete O\\\'Connell (4)
John Doe (4)
Tom De Vylder (1)
Groups & Organizations
site design / logo © 2022 Grokbase