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

Offline Trygenesys12

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Schedule synchronization to run everyday at 2AM
« on: May 04, 2020, 04:44:12 AM »
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: 2752
  • Karma: 44
Re: Schedule synchronization to run everyday at 2AM
« Reply #1 on: May 04, 2020, 06:03:35 AM »
Use cron daemon to schedule running custom scripts etc

Offline Janis

  • Full Member
  • ***
  • Posts: 123
  • Karma: 4
Re: Schedule synchronization to run everyday at 2AM
« Reply #2 on: May 04, 2020, 06:04:37 AM »
Search for “crontab daily”.

Offline cavagnaro

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