IzakMarais / reporter

Service that generates a PDF report from a Grafana dashboard
Apache License 2.0
946 stars 304 forks source link

Run grafana-reporter in the background #361

Closed JJ24093006 closed 6 months ago

JJ24093006 commented 6 months ago

@IzakMarais please can you help me here: I want to run grafana-reporter in the background. I need it because I restart my pc frequently and I want to get rid of the process where I have to open terminal and need to type "grafana-reporter". how can I do it? does it possible?

IzakMarais commented 6 months ago

Sure, you can run it in the background just like any other process. There are many different ways to do that depending on your OS. However, that is not a feature of the process (grafana-reporter) but of the OS. Do an internet search for running a process in the background. Options that come to mind are bash &, screen or systemd.

On 10 Jan 2024, at 12:52, JJ24093006 @.***> wrote:

I want to run grafana-reporter in the background. I need it because I restart my pc frequently and I want to get rid of the process where I have to open terminal and need to type "grafana-reporter". how can I do it? does it possible?

— Reply to this email directly, view it on GitHub https://github.com/IzakMarais/reporter/issues/361, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB7CHEG7N6DNXLSXVOKM4XLYNZXILAVCNFSM6AAAAABBUSMQXKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA3TIMJQGQ4TCNQ. You are receiving this because you are subscribed to this thread.

JJ24093006 commented 6 months ago

Hi I have tried it with batch file. It starts the grafana-reporter but it is not hiding the console. Do you know, can we hide grafana-reporter process ?

JJ24093006 commented 6 months ago

I am able to minimze the command prompt. if anyone will have a soltuion to hide it, please update it here. For a moment I am closing this issue.

start /min cmd /c "your batch file".

use this in your new batch file and run it with startup.