Skip to main content

UNIX - CRONTAB

                                                CRONTAB

  Crontab (CRON TABLE) is a file which contains the schedule of cron entries to be run and at specified times.

   INTERVAL INFO :

Character
Descriptor
Acceptable values
1
Minute
0 to 59, or * (no specific value)
2
Hour
0 to 23, or * for any value.
3
Day of the month
1 to 31, or * (no specific value)
4
Month
1 to 12, or * (no specific value)
5
Day of the week
0 to 7 (0 and 7 both represent Sunday), or * (no specific value)
                                                 
SYNTAX AND EXAMPLE

  • Existing examples:

§  If you wished to have a script named /root/backup.sh run every day at 3am, your crontab entry would look like as follows.
# crontab -e

Append the following entry:
0 3 * * * /root/backup.sh

TIP :

To delete GDE-WATHERS created by users , USERS can add this in their DEV

§  00 10 *  * * find /EME/dev/src/developers/${USER} /home/${USER} /var/stage/abinitio/data/dev/ -name 'GDE-WATCHER-*' -user ${USER} -mtime +1 | xargs -i rm -f {}
                                REFERENCE

§  CRONTAB is used in abadmq* users of hq1adwq01 server.


                                  AREA OF USAGE
§  Periodic cleanup
1.    GDEwatchers
2.    Recovery file
3.    Data file older than 90 days
4.    Moving files to backup

  • Periodic File check



Popular posts from this blog

UNIX - AIR COMMANDS

air object changed: Compares two branches or versions of a single technical repository or two repositories, and identifies which objects have changed.    The command outputs the list of files that have been added, removed, or changed between the source and target as follows: Code (meaning) Description A  (Added) The file exists in the target but not in the source. R  (Removed) The file exists in the source but not in the target. M  (Modified) The file is different in the source and the target. S  (Same) The file is the same in the source and the target. U  (Unknown) The difference could not be determined. Occurs due to permission errors or when an object cannot be checked out. N  (No object) The specified object does not exist in either the source or the target. air tag diff: ...

AB INITIO - LOOKUP FUNCTION

                                                LOOKUP FUNCTION   lookup_next() §   Lookup_next will give you the next available match in the Lookup file. §   Lookup_next should be Preceded after successful call to lookup, lookup_count, lookup_match, lookup_nth, lookup_range, or lookup_next itself. §   The lookup_next function returns NULL if you call it more times than the number of matching records in the file, or if the next matching record does not exist. §   Behavior of lookup_next() on different calls                   The next successive matching record after the previous call to lookup or lookup_range .  ...

TERADATA-PIVOT FUNCTION

                                  PIVOT FUNCTION §   Splits records by data fields (Columns) §   Converts Rows to Columns or Columns to Rows §   Converts an input records into multiple output records.                                                                      EXA MPLE Execute the below query for the results. §   Before pivot query:             sel cost_cntr_id , DATASET_NBR , cat , r...