I need to automatically open terminal with multiple tabs and need to execute multiple commands on it.
I know how to do it in ubuntu. but its not working on mac os . Any Idea?
gnome-terminal --tab -e "tail -f somefile" --tab -e "some_other_command"
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I can give you a clue.
Using
osascript, you can do it.UPDATE:
One thing you need to understand is,
gnome-terminalis for Linux.Gnomeis a very popular Desktop environment written for Linux.Use this oneliner for opening a new tab with $PWD as the working directory:
Following one liner will just open a new tab with
$PWDas working directory and will executeecho Hi