Skip to content
Advertisement

using nohup -> output to file and console

iam using nohup in my project. Is there a possibility get the Output of the program to the console and to the file at the same time while using nohup?

With “tee”i had no sucess:

JavaScript

thanks for help

Advertisement

Answer

Try this to run and log the output in file.

JavaScript

If you want to run it in background:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement