Open gnome-terminal with multi tabs and automatically run a script in each tab
Hi All ,
i am trying to create an alias to open a new gnome-terminal and run some commands in each tab & to have a specific name for each tab
i am using csh ,
tried this command
gnome-terminal --tab -t "s1" --tab -t "s2" --tab -t "s3" --tab -t "s4"
it opened 4 tabs but the title didn't change
===
also tried this
gnome-terminal -e "scriptToRun"
and a new terminal opened with an error as following :
"There was an error creating the child process for this terminal Failed to execute child process "1" (No such file or directory)"
hi,
I would like to ask about using gnome-terminal command, I had a script that will run my VBOX VM in headless and i want to display the output(STDOUT) on the gnome-terminal window. The purpose that i want to display the STDOUT of the script cause i will used it or create a desktop shortcut for... (11 Replies)
OK this is a bit messy.
I run Fedora with gnome on a compiz desktop, I have a script (userstart) that opens my 'standard' environment for all my machines when I login. userstart flips to a specific workspace and then opens the required applications in that workspace then flips to the next... (2 Replies)
hi,
I am using red hat .I want that when ever the user login in GUI interface the terminal windows automatically open and then the user want to logout it 1st close the terminal and then login. There is a file in #ls -a i.e .bashrc and .bash_logout
I does not know how to add my... (0 Replies)
I want to press "apple + T" to open a new terminal tab. This terminal tab must be in the same directory as the current one. Anyone knows how to do that?
Thanks a lot! (1 Reply)
Hello,
I am trying to learn how to pass something more than a one-command startup for gnome-terminal.
I will give an example of what I'm trying to do here:
#! /bin/bash
#
#TODO write this for gnome and xterm
USAGE="
______________________________________________
${0##*/}
run... (0 Replies)
Hi, Is there a way to open and arrange terminal windows automatically under CDE? For example, I want to open and arrange terminal windows like this:
|------------|
| TW TW TW |
| TW TW TW |
| TW TW TW |
|------------|
Thank you in advanced! (5 Replies)
How to make a script run automatically using a cron??
i do not know abt cron......
if i have simple.sh file and i need this to run everyday at a particular time what needs to be done
thanks in advance (4 Replies)
Hi All,
How to run a script automatically using cronjob everyday from Monday to Friday 9A.M to 5P.M at an interval of ONE HOUR.I want the complete syntax means how to put in the cron job and there after.
URGENTLY NEED HELP
THANKS IN ADVANCE
CHEERS
Arunava (7 Replies)
gnome-terminal(1) User Commands gnome-terminal(1)NAME
gnome-terminal - terminal emulator for GNOME
SYNOPSIS
gnome-terminal [--window-with-profile=profilename] [--tab-with-profile=profilename] [--command command] [--execute command] [--role=role]
[--show-menubar | --hide-menubar] [--use-factory | --disable-factory] [--title=title] [--working-directory=dirname] [gnome-std-options]
DESCRIPTION
gnome-terminal is the GNOME terminal emulation program. It provides access to the UNIX shell on the GNOME environment. gnome-terminal sup-
ports multiple profiles to allow easy switching between preferences, and supports tabbing so that multiple terminals can be managed from a
single window. By default, all GNOME terminals share a single process, reducing memory usage. This can be disabled by starting gnome-ter-
minal with the --disable-factory option.
OPTIONS
The following options are supported:
--command commanExecutes the command command instead of the shell. This saves some memory if you just plan to run a dedicated application
on that window. You can also use -e to specify this option.
--execute commanThis option is provided for compatibility reasons. It is the same as the --command option. You can also use -x to specify
this option.
--disable-factorDo not register with the activation name server, and do not reuse an already running GNOME terminal process.
--hide-menubar Hide the menubar. This applies only to one window. When used with multiple --window-with-profile options, it applies to the
--window-with-profile option immediately to the left. Can be specified multiple times, once for each --window-with-profile
option.
--role=role The GNOME session manager follows the ICCCM convention of using the window title and the window role to identify specific
windows. The session manager uses this information to put windows back in the same place when the user restarts their ses-
sion. If all windows have a unique title, there is no need to set the role. However, as it is common for multiple GNOME
terminals to have the same title, the user can also specify the role on the command line with the --role option. This helps
the session manager to properly identify and restart each GNOME terminal (in the same location, and so on). When used
with multiple --window-with-profile options, it applies to the --window-with-profile option immediately to the left. Can be
specified multiple times, once for each --window-with-profile option.
--show-menubar Show the menubar. This applies only to one window. When used with multiple --window-with-profile options, it applies to the
--window-with-profile option immediately to the left. Can be specified multiple times, once for each --window-with-profile
option.
--tab-with-profiCreatesilanatab that uses the specified profile. This argument may be specified multiple times to create multiple tabs in a
terminal. If this is used with multiple --window-with-profile options, the tab is created for the window that corresponds
to the --window-with-profile option immediately to the left.
--title=title Set the title for the GNOME terminal to be title.
--use-factory Register with the activation name server, and reuse an already running GNOME terminal process.
--window-with-prCreatesroaiGNOMEeterminal and a tab that uses the specified profile. This may be used with the --tab-with-profile option to
create additional tabs. Multiple --window-with-profile options can be specified to create multiple GNOME terminal windows.
All options specified after an --window-with-profile option apply to that --window-with-profile option only.
--working-directSet=thenworking directory for the GNOME terminal to be dirname.
gnome-std-optionStandard options available for use with most GNOME applications. See gnome-std-options(5) for more information.
EXTENDED DESCRIPTION
gnome-terminal is designed to emulate the xterm program provided by the X Consortium. The xterm(1) program in turn is an almost-complete
emulation of the DEC VT102 terminal. gnome-terminal supports the same extensions to the VT102 as those provided by the xterm program,
through special escape sequences. The xterm program is an evolving program. Recent changes to xterm have been been incorporated into gnome-
terminal. This includes emulation of the newer DEC VT220 escape sequences.
EXAMPLES
Example 1: Running the `minicom' terminal emulator on the window
example% gnome-terminal --command minicom
Example 2: Monitoring the system
example% gnome-terminal --command top
Example 3: Starting two windows with different profiles
example% gnome-terminal --window-with-profile=FirstProfile
--tab-with-profile=SecondProfile --window-with-profile=SecondProfile
In this example, the first window will have two tabs (FirstProfile and SecondProfile) and the second window will have one tab (SecondPro-
file).
ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables, set by gnome-terminal:
TERM This variable is set to xterm by default. Some implementations of curses, and applications based on curses, may
prefer the value to be xterm-color, color-xterm, or xterm-debian to support color. Users might need to change this
setting to one of these values to enable color for such applications.
COLORTERM This variable is set to xterm. Various applications (especially the Slang-based applications) use this setting to
determine whether the terminal supports color.
WINDOWID This variable contains the X11 Window identifier. This is sometimes used by applications to modify the contents of
this window or provide special effects.
EXIT STATUS
The following exit values are returned:
0 Application exited successfully
>0 Application exited with failure
FILES
The following files are used by this application:
/usr/bin/gnome-terminal Executable for GNOME terminal emulator
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWgnome-terminal |
+-----------------------------+-----------------------------+
|Interface stability |External |
+-----------------------------+-----------------------------+
SEE ALSO gnome-session(1), xterm(1), vte(1), libvte(3), gnome-std-options(5)
Latest version of the GNOME Desktop User Guide for your platform.
NOTES
Written by Michael Zucchi, Miguel de Icaza, Erik Troan.
Updated by Brian Cameron, Sun Microsystems Inc., 2003, 2004.
SunOS 5.10 31 Aug 2004 gnome-terminal(1)