Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
Good Day, hope you guys are doing well. Can we schedule SQL task using bash script not through GUI in Qlik Replicate. If yes, then how?
The syntax we use is:
D:\attunity\replicate\bin\repctl.exe -d E:\data connect; execute <taskname> 1 Flags=1; disconnect
Your drive letters will obviously vary. You can use repctle.exe ? to get valid parameters.
Hello @sardarabdullahkhawar ,
Here is an article explaining the commands to start and stop via Replicate repctl commands.
https://community.qlik.com/t5/Qlik-Replicate/Stop-and-Resume-tasks-via-command-line/td-p/1923703
For windows, you will need to run as administrator from command prompt or powershell:
C:\Program Files\Attunity\Replicate\bin>
C:\Program Files\Attunity\Replicate\bin>repctl
Enter a command or quit
For linux, you need to source site_arep_login.sh or export LD_LIBRARY_PATH like below:
export LD_LIBRARY_PATH=/opt/attunity/replicate/lib:/usr/lib64:$LD_LIBRARY_PATH
cd /opt/attunity/replicate/bin/
./repctl
Enter a command or quit
NOTE: The command for stop/starting is not officially supported by replicate. The commands work, but there is no guarantee that they will not change in the future.
Regards,
Sachin B
You can use the 'repctl connect' command schedule a replication task, please see this article from our knowledge base for details:
Thanks
Kent
Hello team,
If our response has been helpful, please consider clicking "Accept as Solution". This will assist other users in easily finding the answer.
Regards,
Sushil Kumar