OSX Terminal Command ie Batch File

jstevens
SilverLounger
Posts: 2354
Joined: 26 Jan 2010, 16:31
Location: Southern California

OSX Terminal Command ie Batch File

Post by jstevens »

I have four executable files that run just fine if I execute them one at a time. What I would like to do is have one executable file that envokes each file in a new terminal window. There is no need to wait for each to conclude before executing the next file.

This is the code that I am using. It runs in one terminal window.

Code: Select all

# Run executable file 01
sh /Users/Admin/Desktop/File01.sh

# Run executable file 02
sh /Users/Admin/Desktop/File02.sh

# Run executable file 03
sh /Users/Admin/Desktop/File03.sh

# Run executable file 04
sh /Users/Admin/Desktop/File04.sh

Your suggestions are appreciated.
Regards,
John

User avatar
John Gray
PlatinumLounger
Posts: 4831
Joined: 24 Jan 2010, 08:33
Location: A cathedral city in England

Re: OSX Terminal Command ie Batch File

Post by John Gray »

If you were talking Windows Command Prompt BATch files, you would change the / to \ throughout, and prefix each sh command with start ""

As in start "" sh /Users/Admin/Desktop/File01.sh

Heaven knows what OSX does / wants / needs!
John Gray

However far you try to push the envelope it'll always be stationery.

jstevens
SilverLounger
Posts: 2354
Joined: 26 Jan 2010, 16:31
Location: Southern California

Re: OSX Terminal Command ie Batch File

Post by jstevens »

John Gray wrote: As in start "" sh /Users/Admin/Desktop/File01.sh
Heaven knows what OSX does / wants / needs!
I had the "Ah Ha!" moment: open /Users/Admin/Desktop/File02.sh :fanfare:
Regards,
John

User avatar
John Gray
PlatinumLounger
Posts: 4831
Joined: 24 Jan 2010, 08:33
Location: A cathedral city in England

Re: OSX Terminal Command ie Batch File

Post by John Gray »

Somewhat analogous!
John Gray

However far you try to push the envelope it'll always be stationery.