R/Shiny WebApp logs, running in shell (Ubuntu crontab)

I’m running, using crontab, an R/Shiny WebApp. The crontab expression looks like this:

@reboot R -e 'shiny::runApp(...)' | tee /var/log/shiny-server.log

I’ve also tried

@reboot R -e 'shiny::runApp(...)' &> /var/log/shiny-server.log

but does the same: It prints to the file the header when you initialize R from shell. But it doesn’t print any text about the page, i.e. when it loads, when it uploads something, when it crashes…

Do you know how to pipe the output of the logs of the WebApp to the file?

Thank you


Source: ubuntu

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.