Dynamips and the Leopard terminal

I wanted Dynamips to act more like the way I think and it keeps on opening multiple terminal windows but I like to use iTerm.

gf:~ gregferro$ cd Documents/dynalab/Dynagen/Dynagen.app/Contents/Resources/
gf:Resources gregferro$ ls
AppSettings.plist configobj.pyc dynagen.ini pemu_lib.pyc
appIcon.icns configspec dynamips_lib.py script
confConsole.py console.py dynamips_lib.pyc validate.py
confConsole.pyc console.pyc en.lproj validate.pyc
configobj.py dynagen pemu_lib.py
gf:Resources gregferro$
gf:Resources gregferro$
gf:Resources gregferro$ sudo vim dynagen.ini

I want to use iTerm instead of the Terminal that is part of Leopard for the Dynagen / dynamips output. So you can see the following

# Uncomment below of OS X with Terminal with named tabs (requires Leopard)
#telnet = /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"'

# Uncomment below for OS X with iTerm with named tabs
telnet = /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'

The only problem here is that the Terminal window is still used by Dynagen, so I still end up with Leopard terminal. I wonder if there is a way to fix this.

About Greg Ferro

Greg Ferro is a Network Engineer/Architect, mostly focussed on Data Centre, Security Infrastructure, and recently Virtualization. He has over 20 years in IT, in wide range of employers working as a freelance consultant including Finance, Service Providers and Online Companies. He is CCIE#6920 and has a few ideas about the world, but not enough to really count.

He is a host on the Packet Pushers Podcast, blogger at EtherealMind.com and on Twitter @etherealmind and Google Plus

You can contact Greg via the site contact page.

Subscribe For Weekly Updates by Email

Get a Weekly Summary of Latest Articles and Posts to your Email Inbox Every Sunday

Thanks for signing up. Look for the email from MailChimp & make sure you confirm your email address. You may need to check your spam or gmail settings to be sure of receiving the email.

Note: You can unsubscribe at any time using the link at the bottom of every email.