Author Topic: Schedule synchronization to run everyday at 2AM  (Read 242 times)

Offline Trygenesys12

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Schedule synchronization to run everyday at 2AM
« on: May 04, 2020, 01:44:12 PM »
Hello,

Thank you in advance for your time and help!

I am beginner in programming in powershell or batch.

I need to run below curl command everyday at 2AM .

Can someone help me with this. In other word, how to Schedule this Tasks on Linux redhat.

curl -u ops:ops -d @sync.txt -X POST http://<gws host>:<gws port>/api/v2/ops/genesys-environments/ON_PREMISE_ENVIRONMENT/services/synchronization -H "content-type: application/json";echo

Thank you

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2634
  • Karma: 41
Re: Schedule synchronization to run everyday at 2AM
« Reply #1 on: May 04, 2020, 03:03:35 PM »
Use cron daemon to schedule running custom scripts etc
Genesys certified professional consultant (GVP, SIP, GIR and Troubleshooting)

Offline Janis

  • Jr. Member
  • **
  • Posts: 93
  • Karma: 3
Re: Schedule synchronization to run everyday at 2AM
« Reply #2 on: May 04, 2020, 03:04:37 PM »
Search for “crontab daily”.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7172
  • Karma: 56330
Re: Schedule synchronization to run everyday at 2AM
« Reply #3 on: May 05, 2020, 11:47:11 PM »
If Windows...Task Schedule...
What is being taught at school these days?  ???   :P :P :P