I ran a deployment script to setup my server as root. Then I tried to run another script called test.sh which had the following lines in it:
# Logging
exec > >(tee -a /var/log/test_full.log)
exec 2> >(tee -a /var/log/test_error.log)
However when I try this I get the following error:
test.sh: 19: test.sh: Syntax error: redirection unexpected
What might be causing this issue do you think? I've not heard of this error before.