Loading

다른 배치 파일에서 여러 Prep CLI(tableau-prep-cli.bat)를 실행하는 방법

게시 일자: Jan 16, 2023
과업

다른 배치 파일과 함께 여러 Prep 명령줄 인터페이스(CLI) 또는 tableau-prep-cli.bat 호출을 실행하려면 어떻게 해야 하나요?

이 정보는 Prep 명령줄 인터페이스(tableau-prep-cli.bat)를 사용하여 하나씩 실행해야 하는 흐름이 많고 동일한 배치 파일 내에서 Windows 작업 스케줄러에 추가하려는 경우 유용합니다. 다음 예는 첫 번째 "tableau-prep-cli.bat"이 완료된 후에 작업이 완료되므로 작동하지 않습니다.

multi_flows.bat

"C:\Program Files\Tableau\Tableau Prep Builder <version>\scripts\tableau-prep-cli.bat" -c "d:\myflow\PrepConnect.json" -t "d:\myflow\my_test_flow_1.tfl"
"C:\Program Files\Tableau\Tableau Prep Builder <version>\scripts\tableau-prep-cli.bat" -c "d:\myflow\PrepConnect.json" -t "d:\myflow\my_test_flow_2.tfl"
"C:\Program Files\Tableau\Tableau Prep Builder <version>\scripts\tableau-prep-cli.bat" -c "d:\myflow\PrepConnect.json" -t "d:\myflow\my_test_flow_3.tfl"
단계

다른 배치 파일과 함께 Prep 명령줄 인터페이스(tableau-prep-cli.bat)를 실행하는 경우 연속 실행을 위해 call 명령을 사용합니다.

다음은 예시 배치 파일입니다. 

multi_flows.bat

call "C:\Program Files\Tableau\Tableau Prep Builder <version>\scripts\tableau-prep-cli.bat" -c "d:\myflow\PrepConnect.json" -t "d:\myflow\my_test_flow_1.tfl"
call "C:\Program Files\Tableau\Tableau Prep Builder <version>\scripts\tableau-prep-cli.bat" -c "d:\myflow\PrepConnect.json" -t "d:\myflow\my_test_flow_2.tfl"
call "C:\Program Files\Tableau\Tableau Prep Builder <version>\scripts\tableau-prep-cli.bat" -c "d:\myflow\PrepConnect.json" -t "d:\myflow\my_test_flow_3.tfl"
 

 

Knowledge 기사 번호

001463671

 
로드 중
Salesforce Help | Article