To separate regular commands in Unix is to put semicolon in the end like this:
cd /path/to/file;./someExecutable;
But it seems not working for commands like this:
./myProgram1 > /dev/null &
./myProgram2 > /dev/null &
=>./myProgram1 > /dev/null &;./myProgram2 > /dev/null &;
Is there any way separate these kind of commands?
Also, if are below 2 cases are equivalent if I copy paste to command prompt? Thanks.
cd /path/to/file;./someExecutable;
cd /path/to/file;
./someExecutable;