How to automate opening multiple ssh servers with distinct session name in iterm2?How to SSH to a VirtualBox guest externally through a host?Specify an SSH key for git push for a given domainHow to download a file from server using SSH?Have Automator open terminal and execute ssh commandIs there a software that can open multiple terminals and ssh to different server?open ssh server files automatically with apple scriptHow can I do SSH to a specific location when I open new tab/window in iterm2?possible to script to open multiple terminals in local machine and ssh to different servers?How to keep paramiko ssh session open after loggin in using python?SSH to multiple server and then sftp and copy the file to a server?
Find the unknown area, x
Should generated documentation be stored in a Git repository?
Formal Definition of Dot Product
Fixed width with p doesn't work
Is there any good reason to write "it is easy to see"?
Are there any established rules for splitting books into parts, chapters, sections etc?
Spark Double copying my planeswalker - do I have to sacrifice?
Do not cross the line!
Single word that parallels "Recent" when discussing the near future
Is 12 minutes connection in Bristol Temple Meads long enough?
How might a landlocked lake become a complete ecosystem?
The meaning of the Middle English word “king”
How to cope with regret and shame about not fully utilizing opportunities during PhD?
Biology of a Firestarter
What information exactly does an instruction cache store?
Adding labels and comments to a matrix
Polynomial division: Is this trick obvious?
Was the dragon prowess intentionally downplayed in S08E04?
Why does SSL Labs now consider CBC suites weak?
Segmentation fault when popping x86 stack
Is SSH secure against MiTM if server fingerprint is not checked, public key authentication is used and confidentiality is not needed for that service?
Can a tourist shoot a gun for recreational purpose in the USA?
How to redirect stdout to a file, and stdout+stderr to another one?
Mark command as obsolete
How to automate opening multiple ssh servers with distinct session name in iterm2?
How to SSH to a VirtualBox guest externally through a host?Specify an SSH key for git push for a given domainHow to download a file from server using SSH?Have Automator open terminal and execute ssh commandIs there a software that can open multiple terminals and ssh to different server?open ssh server files automatically with apple scriptHow can I do SSH to a specific location when I open new tab/window in iterm2?possible to script to open multiple terminals in local machine and ssh to different servers?How to keep paramiko ssh session open after loggin in using python?SSH to multiple server and then sftp and copy the file to a server?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;

I am automating my developing setup and found an appplescript that opens multiple terminals and ssh into different servers. It works great but I want to change the tab names so that I can distinguish between tabs.

ssh applescript iterm2
add a comment |

I am automating my developing setup and found an appplescript that opens multiple terminals and ssh into different servers. It works great but I want to change the tab names so that I can distinguish between tabs.

ssh applescript iterm2
add a comment |

I am automating my developing setup and found an appplescript that opens multiple terminals and ssh into different servers. It works great but I want to change the tab names so that I can distinguish between tabs.

ssh applescript iterm2

I am automating my developing setup and found an appplescript that opens multiple terminals and ssh into different servers. It works great but I want to change the tab names so that I can distinguish between tabs.

ssh applescript iterm2
ssh applescript iterm2
edited Mar 23 at 23:56
jww
54.9k42243526
54.9k42243526
asked Mar 23 at 13:56
Chanhee LeeChanhee Lee
11
11
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
First make sure that the profile that you are using has the following "Terminal" option set:

Now you are set the tab and/or window title:
tell current session
write text "echo -ne "\033]1; A Tab Title \007""
write text "echo -ne "\033]2; A Window Title \007""
end tell
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55314429%2fhow-to-automate-opening-multiple-ssh-servers-with-distinct-session-name-in-iterm%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
First make sure that the profile that you are using has the following "Terminal" option set:

Now you are set the tab and/or window title:
tell current session
write text "echo -ne "\033]1; A Tab Title \007""
write text "echo -ne "\033]2; A Window Title \007""
end tell
add a comment |
First make sure that the profile that you are using has the following "Terminal" option set:

Now you are set the tab and/or window title:
tell current session
write text "echo -ne "\033]1; A Tab Title \007""
write text "echo -ne "\033]2; A Window Title \007""
end tell
add a comment |
First make sure that the profile that you are using has the following "Terminal" option set:

Now you are set the tab and/or window title:
tell current session
write text "echo -ne "\033]1; A Tab Title \007""
write text "echo -ne "\033]2; A Window Title \007""
end tell
First make sure that the profile that you are using has the following "Terminal" option set:

Now you are set the tab and/or window title:
tell current session
write text "echo -ne "\033]1; A Tab Title \007""
write text "echo -ne "\033]2; A Window Title \007""
end tell
answered Mar 23 at 14:46
SushiHangoverSushiHangover
55.2k64396
55.2k64396
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55314429%2fhow-to-automate-opening-multiple-ssh-servers-with-distinct-session-name-in-iterm%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown