3 Replies Latest reply on Sep 21, 2017 8:41 PM by Sankarmagesh Rajan

    Tabcmd auto running

    Gaurav Gupta

      Hello All,

       

      How can we make a TABCMD command running everyday on a specific time?

       

      Kindly help.

        • 1. Re: Tabcmd auto running
          Sankarmagesh Rajan

          Hi Gaurav,

           

          Create tabcmd in notepad and save it as .bat file.

           

          Use the windows task scheduler and setuo daily specific time task and add this bat file.

           

          for ex,

           

          if you installed 64 bit machine with 32 bit tabcmd then go with C:\Program Files(x86)\Tableau\Tableau Server\9.3\extras\TabcmdInstaller.exe

          Follow the steps with open source command line tool:

          :: Change directory to tabcmd location

          cd "C:\Program Files\Tableau\Tableau Server\7.0\bin"

          :: login to Tableau via tabcmd

          tabcmd login -s http://localhost --username u1 --password p1 --no-prompt

           

          :: run tabcmd get command which retrieves the URL of the reports with the filter and size parameter

          :: reports are saved to pdf

          tabcmd get "views/workbook/report1.pdf?param=value&:size=1680,1050" -f "C:\report1.pdf"

          tabcmd get "views/workbook/report2.pdf?param=value&:size=1680,1050" -f "C:\report2.pdf"

           

          :: logout of tabcmd when done

          tabcmd logout

          save this as .bat file extension.

           

          Thanks

          sankar

          2 of 2 people found this helpful
          • 2. Re: Tabcmd auto running
            Gaurav Gupta

            Hi Sankar,

             

            Thanks for reply.

             

            Could you please let me know on how to open and set window task scheduler. Also I created one bat file. Could you please tell me if it is correct?

             

            bat.jpg

            • 3. Re: Tabcmd auto running
              Sankarmagesh Rajan

              Hi Gaurav,

              first enter the tableau server bin path

              if you installed 64 bit machine with 32 bit tabcmd then go with C:\Program Files(x86)\Tableau\Tableau Server\9.3\extras\TabcmdInstaller.exe

              Follow the steps with open source command line tool:

              :: Change directory to tabcmd location

              cd "C:\Program Files\Tableau\Tableau Server\7.0\bin"

               

              next enter the login, export and logout that you added previously.

               

              Open task scheduler and add this file.

               

              Thanks

              sankar

              1 of 1 people found this helpful