|
Archives of the TeradataForumMessage Posted: Mon, 21 Apr 2014 @ 13:17:07 GMT
James:
Answer: You can put one line for each action, or make a .sh an just execute this .sh from de contrab, just one crontab.
Answer: This line are from crontab, not affect the packdisk
The command to work with crontab: crontab -e Edit your crontab file, or create one if it doesn't already exist. crontab -l Display your crontab file. crontab -r Remove your crontab file. crontab -v Display the last time you edited your crontab file. (This option is only available on a few * * * * * command to be executed - - - - - | | | | | | | | | +----- day of week (0 - 6) (Sunday=0) | | | +------- month (1 - 12) | | +--------- day of month (1 - 31) | +----------- hour (0 - 23) +------------- min (0 - 59)
Answer: Yes you can setup it from the node, or redirect the log, for example 30 19 * * 4 /opt/Teradata/tdat/pde/14.00.04.03/bin/cnsrun -utility ferret -multi -file /var/opt/Teradata/bteqdba/packdisk-scandisk.txt > /var/opt/Teradata/bteqdba/CNSRUN_`date +\%y\%m\%d-\%H:\%M`.output 2>&1 Take care, my example run first a packdisk, and then the scandisk, you can remove the sentence scandisk. Have a nice day. Antonio Angel Pirri
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||