osx - How to execute commands in new tabs? -
i want start 2 different databases want keep each process running in separate tab in terminal. how do within shell script? have following code:
#! /bin/bash mysqld & redis-server each database needs own tab. on osx.
osascript -e 'tell application "terminal" activate' -e 'tell application "system events" tell process "terminal" keystroke "t" using command down' -e 'tell application "terminal" script "mysqld" in selected tab of front window' (based on https://stackoverflow.com/a/7177891/1566267)
the similar command redis-server.
Comments
Post a Comment