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 tweaks with wait delays and for some commands that worked for others not. XSEL and XCLIP couldn't be installed on that server.
So here is the solution:
1. Get command output in a file.
2. Echo that file to title.
on putty client and suse server it looks like this:
Hopefully someone will be able to use this. It won't work for all server types and putty client settings, of course, but the idea should work well.
Best
Jacek
Moderator's Comments:
Please use code tags next time for your code and data, thanks
Last edited by vbe; 06-25-2015 at 08:40 AM..
These 2 Users Gave Thanks to domagaj For This Post:
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)
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)
Is it possible to set the PuTTY title to show the current hostname of the terminal opened?
I meant to say I would be rlogin between servers, that should be updated in PuTTTY title ? :confused: (4 Replies)
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)
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? :(
... (3 Replies)
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)
Hello all,
I have a not so unix question for you guys(or maybe it is). I use PUTTY to login to serverA (my putty title shows as serverA.domainname.com)
Now from ServerA i do ssh user@ServerB (i have ssh public private key setup)...
now my question is when i do ssh and logon to... (20 Replies)
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
LEARN ABOUT CENTOS
tk::messagebox
messageBox(3) User Contributed Perl Documentation messageBox(3)NAME
messageBox - pop up a message window and wait for user response.
SYNOPSIS
$response = $widget->messageBox(-option => value, ... );
DESCRIPTION
This method uses Tk::Dialog to quickly create several common dialog boxes. A dialog widget consists of a message, an icon and a set of
buttons (see the -type option). After the message window is popped up, messageBox waits for the user to select one of the buttons and
return the button text (note that it's best to check the returned value in a case insensitive manner). NOTE: unlike Tk::Dialog which
creates its widget once and can be used many times, the messageBox window is created every time it's used.
The following option/value pairs are supported:
-default
The case-sensitive symbolic name of the default button for this message window ('Ok', 'Cancel' and so on). See -type for a list
of the symbolic names. If the message box has just one button it will automatically be made the default, otherwise if this
option is not specified, there won't be any default button.
-icon
Specifies an icon to display. On X11 any of the builtin Tk bitmaps can specified. On Windows only error, info, question or warning are
supported.
-message
Specifies the message to display.
-title
Specifies a string to display as the title.
-type
Specifies a predefined set of buttons to be displayed. The following values are possible: 'AbortRetryIgnore', 'Ok', 'OkCancel',
'RetryCancel', 'YesNo' or 'YesNoCancel'.
EXAMPLE
$response = $mw->messageBox(-icon => 'question', -message => 'Hello World!', -title => 'My title', -type => 'AbortRetryIgnore', -default =>
'Retry');
AUTHOR
Stephen.O.Lidie@Lehigh.EDU. 98/05/25
perl v5.16.3 2014-06-10 messageBox(3)