10-10-2008
Quote:
Originally Posted by
./hari.sh
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 ?
Dude, just do a search for putty title. Should be a bunch of stuff, including my awesome technique...
...Never mind, I am kind. The link is here:
https://www.unix.com/unix-dummies-que...me-path-2.html
You'll need to edit your .bashrc on all servers you log into.
9 More Discussions You Might Find Interesting
1. SCO
I am using SCO Open Server 5.0.6 in different machines in same building. In order to avaoid confusion I would like to give different login messages instead of 'SCO OpenServer(TM) Release 5' prior to machine name.
Pl. help.
Praseeda (2 Replies)
Discussion started by: praseeda
2 Replies
2. UNIX for Advanced & Expert Users
Is it possible to change the putty window title from a Unix command line? (12 Replies)
Discussion started by: akbar
12 Replies
3. UNIX for Advanced & Expert Users
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
4. Shell Programming and Scripting
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
5. Shell Programming and Scripting
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
6. UNIX for Dummies Questions & Answers
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)
Discussion started by: abdul.irfan2
20 Replies
7. Shell Programming and Scripting
my codeothers (1 Reply)
Discussion started by: sauravrout
1 Replies
8. UNIX for Dummies Questions & Answers
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
9. Shell Programming and Scripting
need a bit of help please
i have a htmlfile
in the file there is a long list of txt
each line has a different title
i want to extract all the titles with
egrep, sed, awk, and save them to a txt.file
example extract the bits in red
from this
<h3... (8 Replies)
Discussion started by: bob123
8 Replies
LEARN ABOUT PHP
cli_set_process_title
CLI_SET_PROCESS_TITLE(3) 1 CLI_SET_PROCESS_TITLE(3)
cli_set_process_title - Sets the process title
SYNOPSIS
bool cli_set_process_title (string $title)
DESCRIPTION
Sets the process title visible in tools such as top and ps. This function is available only in CLI mode.
PARAMETERS
o $title
- The new title.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
ERRORS
/EXCEPTIONS
An E_WARNING will be generated if the operating system is unsupported.
EXAMPLES
Example #1
cli_set_process_title(3) example
<?php
$title = "My Amazing PHP Script";
$pid = getmypid(); // you can use this to see your process title in ps
if (!cli_set_process_title($title)) {
echo "Unable to set process title for PID $pid...
";
exit(1);
} else {
echo "The process title '$title' for PID $pid has been set for your process!
";
sleep(5);
}
?>
SEE ALSO
cli_get_process_title(3), setproctitle(3).
PHP Documentation Group CLI_SET_PROCESS_TITLE(3)