Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9230079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:44:06+00:00 2026-06-18T05:44:06+00:00

I need to automatically open terminal with multiple tabs and need to execute multiple

  • 0

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"
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T05:44:08+00:00Added an answer on June 18, 2026 at 5:44 am

    I can give you a clue.

    Using osascript, you can do it.

    UPDATE:

    One thing you need to understand is, gnome-terminal is for Linux. Gnome is a very popular Desktop environment written for Linux.

    Use this oneliner for opening a new tab with $PWD as the working directory:

    osascript -e "tell application \"Terminal\"" -e "tell application \"System Events\" to keystroke \"t\" using {command down}" -e "do script \"cd $PWD; clear\" in front window" -e "end tell" > /dev/null
    

    Following one liner will just open a new tab with $PWD as working directory and will execute echo Hi

    osascript -e "tell application \"Terminal\"" -e "tell application \"System Events\" to keystroke \"t\" using {command down}" -e "do script \"cd $PWD; echo HI\" in front window" -e "end tell" > /dev/null
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to find an easy way to know if the local machine's 'automatically
I need my dialog to open when the page is loaded automatically. What is
It works var tip = <p>Most computers will open PDF documents automatically, but you
I need to automatically open a user's default email client when they save some
I need to automatically export figures from Matlab to PNG. My figure has a
I need a way to automatically format Date and Number objects based on locale
I need to reset a MySQL Field value automatically at midnight. It is a
I need to create a page that will automatically create a thumbnail from all
I need to create a landing page that will automatically redirect a visitor to
I need to be able to write a script to automatically connect mysql in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.