{"action":"opened","issue":{"url":"https://api.github.com/repos/GNS3/gns3-gui/issues/400","labels_url":"https://api.github.com/repos/GNS3/gns3-gui/issues/400/labels{/name}","comments_url":"https://api.github.com/repos/GNS3/gns3-gui/issues/400/comments","events_url":"https://api.github.com/repos/GNS3/gns3-gui/issues/400/events","html_url":"https://github.com/GNS3/gns3-gui/issues/400","id":85269757,"number":400,"title":"Mac OS X: logging stops after starting an iTerm console","user":{"login":"ehlers","id":896406,"avatar_url":"https://avatars.githubusercontent.com/u/896406?v=3","gravatar_id":"","url":"https://api.github.com/users/ehlers","html_url":"https://github.com/ehlers","followers_url":"https://api.github.com/users/ehlers/followers","following_url":"https://api.github.com/users/ehlers/following{/other_user}","gists_url":"https://api.github.com/users/ehlers/gists{/gist_id}","starred_url":"https://api.github.com/users/ehlers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehlers/subscriptions","organizations_url":"https://api.github.com/users/ehlers/orgs","repos_url":"https://api.github.com/users/ehlers/repos","events_url":"https://api.github.com/users/ehlers/events{/privacy}","received_events_url":"https://api.github.com/users/ehlers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-04T20:43:37Z","updated_at":"2015-06-04T20:43:37Z","closed_at":null,"body":"GNS3 1.4.4, OS: Mac OS X 10.9.5\r\n\r\nI newly wanted to use iTerm and configured the predefined iTerm command as a Telnet Console.\r\nThen I dropped a router (cisco 3725 in my example) into the temporary project, started it und started the console.\r\n\r\nEverything runs smooth, but in the logging the start of the iTerm console is the last message (except some few QT loggings). This doesn't happen with Terminal as the console program.\r\n\r\n```\r\nJun  4 22:07:24 imac.lan GNS3[2061] <Notice>: 2015-06-04 22:07:24 INFO vm.pyo:99 R1 has started\r\nJun  4 22:07:27 imac.lan GNS3[2061] <Notice>: 2015-06-04 22:07:27 INFO telnet_console.pyo:90 starting telnet console \"osascript -e 'tell application \"iTerm\"' -e 'activate' -e 'if (count of terminals) = 0 then' -e '  set t to (make new terminal)' -e 'else' -e '  set t to current terminal' -e 'end if' -e 'tell t' -e '  set s to (make new session at the end of sessions)' -e '  tell s' -e '    exec command (\"telnet 192.168.1.10 2001\")' -e '    delay 1' -e '    repeat while s exists' -e '      delay 1' -e '    end repeat' -e '  end tell' -e 'end tell' -e '\r\nJun  4 22:07:27 imac.lan GNS3[2061] <Notice>: 2015-06-04 22:07:27 INFO telnet_console.pyo:90 starting telnet console \"osascript -e 'tell application \"iTerm\"' -e 'activate' -e 'if (count of terminals) = 0 then' -e '  set t to (make new terminal)' -e 'else' -e '  set t to current terminal' -e 'end if' -e 'tell t' -e '  set s to (make new session at the end of sessions)' -e '  tell s' -e '    exec command (\"telnet 192.168.1.10 2001\")' -e '    delay 1' -e '    repeat while s exists' -e '      delay 1' -e '    end repeat' -e '  end tell' -e 'end tell' -e '\r\nJun  4 22:07:27 imac.lan GNS3[2061] <Notice>: 2015-06-04 22:07:27 INFO telnet_console.pyo:90 starting telnet console \"osascript -e 'tell application \"iTerm\"' -e 'activate' -e 'if (count of terminals) = 0 then' -e '  set t to (make new terminal)' -e 'else' -e '  set t to current terminal' -e 'end if' -e 'tell t' -e '  set s to (make new session at the end of sessions)' -e '  tell s' -e '    exec command (\"telnet 192.168.1.10 2001\")' -e '    delay 1' -e '    repeat while s exists' -e '      delay 1' -e '    end repeat' -e '  end tell' -e 'end tell' -e '\r\nJun  4 22:07:41 imac.lan GNS3[2061] <Notice>: QPixmap::scaled: Pixmap is a null pixmap\r\nJun  4 22:09:33 imac.lan GNS3[2061] <Notice>: QPixmap::scaled: Pixmap is a null pixmap\r\nJun  4 22:09:40 imac.lan GNS3[2061] <Notice>: 2015-06-04 22:09:40.837 GNS3[2061:507] modalSession has been exited prematurely - check for a reentrant call to endModalSession:\r\nJun  4 22:09:52 imac.lan GNS3[2061] <Notice>: QPixmap::scaled: Pixmap is a null pixmap\r\n>>> GNS3 finished\r\nJun  4 22:09:55 imac.lan GNS3[2061] <Notice>: 2015-06-04 22:09:55.199 GNS3[2061:507] modalSession has been exited prematurely - check for a reentrant call to endModalSession:\r\nJun  4 22:09:55 imac.lan GNS3[2061] <Notice>: Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>\r\nJun  4 22:09:55 imac.lan GNS3[2061] <Notice>: BrokenPipeError: [Errno 32] Broken pipe\r\n```\r\n\r\nEven after the stop of the logging I can continue normally, even start new consoles, it's just the logging.\r\n\r\nThen I created a start-iTerm script, which holds the long command line. In GNS3 the telnet console command is now \"/usr/local/bin/start-iTerm %h %p\". That way the logs continue working, even after starting an iTerm console.\r\n\r\n Maybe the problem is the very long command string for iTerm ?"}}