Jump to content

How to create a sequential series of terminal commands


Recommended Posts

Posted

I would like to create a workflow that basically executes a series of terminal commands, one after another. The input requires no query or variables, it's just a series of commands. The only hitch may be that I have to wait for the first terminal command to finish before executing the next command.

Posted (edited)

I think you just type each command (inside a 'Run Script' Action), followed by a new line. Then each will be executed after the one before it :)

Edited by Tyler Eich
Posted

I think you just type each command (inside a 'Run Script' Action), followed by a new line. Then each will be executed after the one before it :)

 

I knew I was missing something :) thanks!

Posted (edited)

You can also try this:

cd ~/Desktop && mkdir {query} && cd {query}

 

or even standard

 

cd ~/Desktop; mkdir {query}; cd {query}; etc.......

Edited by rootscript
  • 1 month later...
Posted

I'd suggest also piping output somewhere that you can check it (depending of course on what your commands are doing). 

mkdir foobar && echo 'foobar' > >(logger -t a8c-setup) 2>&1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...