The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 165β€…    Votes:  5β€…    βœ… Solution
Tags: command-line   bash   scripts   python   java  
Link: πŸ” See Original Answer on Ask Ubuntu ⧉ πŸ”—

URL: https://askubuntu.com/q/882768
Title: Looping command line program
ID: /2017/02/13/Looping-command-line-program
Created: February 13, 2017    Edited:  February 13, 2017
Upload: March 26, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


Using bash by default one command doesn’t start until the first one finishes so you can use:

/path/to/command /path/to/file1
/path/to/command /path/to/file2
/path/to/command /path/to/file3

Put the commands in a script called for example ~/run-all-commands. Then mark it as executable using:

chmod +x ~/run-all-commands

Then call the bash script with batch of commands using:

~/run-all-commands
⇧ Searchable Clipboard Manager, like ctrl-r in bash How To View Process Instead Of Splash Screen During Boot By Pressing A Key?  β‡©