How can I fork two programs to the background using one line of bash and possibly an ampersand? How can I fork two programs to the background using one line of bash and possibly an ampersand? bash bash

How can I fork two programs to the background using one line of bash and possibly an ampersand?


You leave out the ';' char, i.e.

 program1 &  program2 &

I hope this helps.


try

(program1 &) ; (program2 &)