Opening A Terminal And Running Several Bash Commands In Orde

Talk, speculate, discuss, pontificate. As long as it pertains to Hazel.

Moderators: Mr_Noodle, Moderators

Hi everyone,

I am trying to make a small Bash script that can open a new terminal window and then run several commands one after another.

I have tested a few different approaches, but I have not managed to get it working properly yet. What I need is something simple where the terminal opens, the first command runs, then the next command runs after that, and so on.

For example, I would like to use it for a short sequence of commands instead of typing each one manually every time.

Is there a clean and beginner-friendly way to do this in Bash? A small working example would be very helpful.

Thanks in advance.
CindyrimesS
 
Posts: 2
Joined: Thu May 15, 2025 12:39 am

Is there a reason why you need Terminal to do this? If you create a script, each line is a command you execute in sequence.
Mr_Noodle
Site Admin
 
Posts: 12207
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Open Discussion