Running DSA Jobs Using Crontab - Running DSA Jobs Using Crontab - BAR - Data Stream Architecture

Teradata® DSA User Guide

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
BAR
Data Stream Architecture
Release Number
17.20
Published
November 2022
Language
English (United States)
Last Update
2023-11-30
dita:mapPath
bis1632417576364.ditamap
dita:ditavalPath
vwp1576617377804.ditaval
dita:id
cyv1467242268519
Product Category
Software
Teradata Tools and Utilities
You can schedule and run DSA jobs from Crontab. However, you must first create a script with specific information and create a Crontab entry.
  1. In your own directory, create a new script with the following information. Make sure the permission of this script is 755: # chmod script 755:
    #!/bin/bash 
     
    # This will identify where BARCmdline is installed
    # If non-TMSB it will also contain the path to JAVA
    source /etc/profile.d/barcmdline-profile.sh
    # These will identify where JAVA is on TMSB Servers
    if [ -f /etc/profile.d/teradata-jdk11.sh ]; then
     source /etc/profile.d/teradata-jdk11.sh > /dev/null 2>&1
    fi
    # Here specify the specific job you want to run
    dsc run_job -n 
  2. Edit Crontab:
    # crontab -e
  3. Use Crontab syntax to create an entry at the beginning of the Crontab script.
  4. In the Cron entry, run the script you just created.