-
1. Re: Tabcmd auto running
Sankarmagesh Rajan Sep 20, 2017 7:58 PM (in response to Gaurav Gupta)2 of 2 people found this helpfulHi 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
-
-
3. Re: Tabcmd auto running
Sankarmagesh Rajan Sep 21, 2017 8:41 PM (in response to Gaurav Gupta)1 of 1 people found this helpfulHi 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