Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
sardarabdullahkhawar
Contributor II
Contributor II

Scheduling task using Bash script

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?

4 Replies
PGN
Creator II
Creator II

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.

SachinB
Support
Support

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

Kent_Feng
Support
Support

Hi @sardarabdullahkhawar ,

You can use the 'repctl connect' command schedule a replication task, please see this article from our knowledge base for details:

https://community.qlik.com/t5/Official-Support-Articles/Repctl-Stop-Start-Task-using-REPCTL-command-...

 

Thanks

Kent

 

 

*** Greetings from Down Under ***
SushilKumar
Support
Support

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