Bash: Put a job in the background and then tail the log

background-processbashscriptingshell

How do you make the escaping work so that the & is actually running the first command in the background?

# foo param1 param2 >> run.out &; tail -f run.out

Best Answer

Just drop the semicolon:

# foo param1 param2 >> run.out & tail -f run.out