ThoughtSpot Linux Crontab - How to define range of values while scheduling

In Linux Crontab we can use the symbol '-' as separator to define the range of input values for time while scheduling the auto Cron job.

In ThoughtSpot (TS) Linux Crontab, I'm not able to use this '-' symbol to define the range of time while scheduling Cron in vim. I have tried to capture the output, but the .txt file is empty.

I'm using the command, which doesn't work:

30 6-14 * * * /home/work/dev/test.sh

Any suggestions on how this command has to be written? 

2replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  •  Damian Waldron
    Stuart Herd 
    Gautam Parab

    Please share your view?

    Reply Like
  • Idea T The format that you described for crontab should work in the ThoughtSpot environment.

    I have this crontab entry, and it runs every hour at xx:50

    50 0-23 * * * $HOME/monitor/echotime.sh > $HOME/monitor/logs/`date +\%Y\%m\%d-\%H\%M\%S`-UTC-echotime.log 2>&1

    You could also separate out the hours with commas: e.g. 

    50 2,3,4,5,6 * * * $HOME/monitor/echotime.sh

    (would run at 2:50, 3:50, 4:50, 5:50, 6:50).

    To create the crontab entry, I used crontab -e and to list the crontab entries I use crontab -l

    What is your platform? Physical appliance? AWS? GCP? Azure? VMWare? However, it shouldn't matter which platform you are running on since all ThoughtSpot environments use CentOS.

    You can check the Linux distribution with this command: lsb_release -a

    Finally, keep in mind that the timezone of the environment is what crontab will use - so, make sure you are setting your crontab entries to run based on the timezone that the ThoughtSpot environment is set to.

    You can use this command to check the timezone for your environment: date +"%Z %z"

    Reply Like
Like Follow
  • Status Answered
  • 9 mths agoLast active
  • 2Replies
  • 50Views
  • 2 Following