I have a program named "mem" and it takes one arg. If I run it by ./mem 1, all things went well. But when I tried to run "mem" multiple times with different args like this:

./mem 1 & ; ./mem 2 &;

I got an error:

-bash: syntax error near unexpected token `;'

So what's the problem and how to fix it? Thanks.

marked as duplicate by Jeff Schaller, ilkkachu bash Feb 7 at 15:13

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.