It is currently Fri Sep 10, 2010 11:50 am


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Leopard Terminal command with Tabs
PostPosted: Fri Oct 31, 2008 12:07 am 
Offline

Joined: Thu Oct 30, 2008 11:53 pm
Posts: 4
Preferences > General > Terminal Command:

This is the default GNS3 setting:
/usr/bin/osascript -e 'tell application "terminal" to do script with command "telnet %h %p ; exit"'

This is the setting I use in my Dynagen .ini file which works with Dynagen Leopard's Terminal tabs:
# Uncomment below on OS X with Terminal with named tabs (requires Leopard)
/usr/bin/osascript -e 'tell application "System Events" to tell process "Terminal" to keystroke "t" using command down' -e 'tell application "Terminal" to do script with command "telnet %h %p ; exit" in last tab of first window' -e 'tell application "Terminal" to tell window 1 to set custom title to "%d"'

Using the Dynagen .ini tabbed Terminal script in GNS3 has worked a very few times for me but usually GNS3 simply sends the command to the currently selected tab in Terminal instead of creating a new tab.

Does anyone have a modified tabbed Terminal script which works around this problem I've mentioned or does GNS3 not work well with the multiple AppleScript commands in this terminal tab script?

Thanks in advance.






Top
 Profile E-mail  
 
 Post subject: Re: Leopard Terminal command with Tabs
PostPosted: Wed Mar 10, 2010 6:55 pm 
Offline

Joined: Mon Nov 17, 2008 3:09 pm
Posts: 14
iTerm works very well for this.

Here's the command:
Code:
/usr/bin/osascript -e 'tell app "iTerm"' -e 'activate' -e 'set myterm to the first terminal' -e 'tell myterm' -e 'set mysession to (make new session at the end of sessions)' -e 'tell mysession' -e 'exec command "telnet %h %p"' -e 'set name to "%d"' -e 'end tell' -e 'end tell' -e 'end tell'

_________________
For GNS3 tutorials on OS X visit: www.bitsontheline.net


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO