5 Replies Latest reply on Aug 23, 2018 8:20 AM by gabriela..zorrilla

    Tabcmd not playing nice with cronjob.

    gabriela..zorrilla

      Hey. I wrote a Go (used Go just to replace bash scripting which i find cumbersome for accepting parameters) program that makes pdfs and emails them. It works fine if run logged in the CLI but the PDF is not generated if run via CRON. The Go program runs (as shown in my logs), but the file output is not generated.

       

      Okey, so I grabbed the command the Go program produces and found that for example this:

       

      tabcmd login -s xxx:80 -u admin -p xxx && tabcmd export "xxx/Dashboard" --pdf --pagesize unspecified -f "/tmp/tableau/xxxx.pdf" works in the CLI but does not in CRON.

       

      I'm clueless what this can be. Help?

       

      Thanks!