Everything I have tried from other examples I have found on SO don't seem to work. I am trying to run my application using nohup but append the output of the application to a file.
I have tried some of the following. None of which seem to work.
nohup dotnet application.dll &> out.log &
nohup dotnet application.dll > out.log 2>&1 &
nohup dotnet application.dll > /opt/out.log &
I always receive something like
-bash: out.log: Permission denied
I have tried running the application using sudo but it still doesn't seem to work.
nohup dotnet application.dll &
Works fine, but it directs the output to some other directory like /home/ubuntu/nohup.out
What am I doing wrong?