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

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -