Sponsored Content
Operating Systems Linux how to insert a title into a window in kshell Post 302427090 by usustarr on Thursday 3rd of June 2010 09:07:32 PM
Old 06-03-2010
how to insert a title into a window in kshell

hi all,

i am using a Ubuntu work station. i have following piece of code that works ok. But i cant figure out a way to insert a string call $Name into the title of the window i am opening. As you can see, i tried two different ways without a success. Can someone please help me out here? Smilie


Code:
if [ "`uname`" = "Linux" ]; then
    #xterm -n $i -T $Name -sl 9999 -sb -bg black -fg yellow -geometry 90x24 -exec vi $log/logs/test.txt
    gnome-terminal --window-with-profile=Win --title=$Name -e "vi $log/logs/test.txt " &

else

 

10 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

window 2000 professional not pinging my window 98 system.

Hello, We someone help me resolve this problem. I have window 2000 professional, windows 98 and Unixware 7.0.1 on the network. I was able to establish connection with all. However, l was unable to ping window 98 from window 2000 professional. I was able to ping the window 2000 from the window... (10 Replies)
Discussion started by: kayode
10 Replies

2. UNIX for Dummies Questions & Answers

window title..?

how to echo some text onto the window title bar...in exceed client...so that we can know where we are in..in multiple hostnames kinda..thing.. any advice.. (1 Reply)
Discussion started by: tintedwindow
1 Replies

3. UNIX for Advanced & Expert Users

Change putty title window?

Is it possible to change the putty window title from a Unix command line? (12 Replies)
Discussion started by: akbar
12 Replies

4. UNIX for Advanced & Expert Users

putty title window?

I have implemented the solution from mschwage located in post https://www.unix.com/unix-advanced-expert-users/35784-change-putty-title-window.html; ie wt () { echo -n "^2;${@}^G" } This method is awesome!!!! The reason I am sending you this message is to get your assistance with... (3 Replies)
Discussion started by: lwif
3 Replies

5. UNIX for Advanced & Expert Users

Change title of aixterm window online

Is there any way to change title of aixterm window online? Also is it possible to freeze first/last few lines online? (1 Reply)
Discussion started by: Soham
1 Replies

6. Shell Programming and Scripting

Insert Title To Each Lines

I have a command that returns following, but it's missing a title for each line. YOUR FULL NAME YOUR ID YOUR EMAIL YOUR ADDRESS YOUR PHONE Now, I want to add its title to each line: Name: YOUR FULL NAME ID: YOUR ID Email: YOUR EMAIL Address: YOUR ADDRESS Phone:... (2 Replies)
Discussion started by: tqlam
2 Replies

7. Shell Programming and Scripting

How do I Get the Title of My Putty Window (Emulating an XTerm)

I have a Perl script that changes the terminal window title and I would like to reset it to the original value when I am done. We are using Putty which emulates xterm. We are not running X-Windows so I can't use something like xprop (can I?). I'm using XTerm control codes to change the title and I... (2 Replies)
Discussion started by: NateTut
2 Replies

8. Shell Programming and Scripting

Remotely setting putty window title

I have successfully used a script to modify putty's window title for many years. It has worked great in a Solaris 10 environment, using, sh, bash and tcsh. But I've never been able to get it to work in linux :( The script relies on sending escape sequences via gnu echo. The version of echo on... (4 Replies)
Discussion started by: tsreyb
4 Replies

9. UNIX for Dummies Questions & Answers

Getting command output to putty window title.

Hi, Last 2 weeks I have searched many forums and i haven't found the answer for the question: How to get all command output to Putty title? Needed it for other programs to know when some jobs on a server is done and is it done right or wrong. Plink stdout and stdin wasn't working, i used many... (1 Reply)
Discussion started by: domagaj
1 Replies

10. Shell Programming and Scripting

Insert title as output of command to appended file if no output from command

I am using UNIX to create a script on our system. I have setup my commands to append their output to an outage file. However, some of the commands return no output and so I would like something to take their place. What I need The following command is placed at the prompt: TICLI... (4 Replies)
Discussion started by: jbrass
4 Replies
gnome-terminal(1)						   User Commands						 gnome-terminal(1)

NAME
gnome-terminal - terminal emulator for GNOME SYNOPSIS
gnome-terminal [--tab] [--window] [--tab-with-profile=profilename] [--window-with-profile=profilename] [--active] [--command=command] [--execute=command] [--full-screen] [--role=role] [--show-menubar | --hide-menubar] [--startup-id=id] [--title=title] [--use-factory | --disable-factory] [--zoom=zoomfactor] [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: --active Set the last specified tab as the active one in its window. -e, --command command Executes the command command instead of the shell. This saves some memory if you just plan to run a dedicated application on that win- dow. --disable-factory Do not register with the activation name server, and do not reuse an already running GNOME terminal process. -x, --execute command This option is provided for compatibility reasons. It is the same as the --command option. --full-screen Set the last-specified window into fullscreen mode. Applies to only one window. Can be specified one for each wwindow you create from the command line. --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 session. 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. --startup-id=id Set the id for startup notification protocol. --tab Open a new tab in the last-opened window with the default profile. More than one of these options can be provided. --tab-with-profile=profilename Creates a tab 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-pro- file option immediately to the left. -t, --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 Open a new window contianing a tab with the default profile. More than one of these options can be provided. --window-with-profile=profilename Creates a GNOME terminal and a tab that uses the specified profile. This may be used with the --tab-with-profile option to create addi- tional 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-directory=dirname Set the working directory for the GNOME terminal to be dirname. --zoom=zoomfactor Set the terminal's zoom factor (1.0 = normal size). gnome-std-options Standard 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 |Volatile | +-----------------------------+-----------------------------+ SEE ALSO
gnome-session(1), xterm(1), vte(1), libvte(3), attributes(5), environ(5) 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, 2006. SunOS 5.11 31 Aug 2004 gnome-terminal(1)
All times are GMT -4. The time now is 04:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy