#!/usr/local/bin/ksh
#################################################################################
# Script #
# Description #
# Modifications 06/26/04 - $progname added to temp files for tracking. - rmorten#
# Written On #
# Written By Rick Mortensen #
#################################################################################

# Program Variables
progname=File.header
bkdate=/bin/bkdate
awk=/usr/bin/awk
nawk=/usr/local/bin/nawk
htod=/home/bin/htod
dtoh=/home/bin/dtoh
DAYMINUS30=`$bkdate -d30 '+%y%m%d'`
YESTERDATE=`$bkdate -d1 '+%m/%d'`
YESTERDAY=`$bkdate -d1 '+%y%m%d'`
DATE=`date '+%m/%d'`
DAY=`date '+%y%m%d'`
SERIAL=`date '+%y%m%d%H%M%S'`

# Directory Variables

# File Variables
TMP1=/tmp/$progname.tmp1.$$
TMP2=/tmp/$progname.tmp2.$$
TMP3=/tmp/$progname.tmp3.$$
TMP4=/tmp/$progname.tmp4.$$

# Test for tmp file and if it missing, exit
#if [ -s $TMP ]
# then
# :
# else
# echo "\ntmp file missing; exiting...\n"
# exit
#fi

# We now expect the user to use a variable to show the type of activity.
# We will test for that here.
#if [ $# -ne 1 ]
# then
# echo "\n\nYou must either enter restart or cleanup.\nExiting...\n\n";exit
#fi
#case $1 in
# restart) ;;
# cleanup) ;;
# *) echo "\n\nThe only choices are restart or cleanup.\nExiting...\n\n" ; exit ;;
#esac

# Functions

# Cleanup
rm -fr $TMP1* $TMP2* $TMP3* $TMP4*

 

  • Expect the best and be prepared for the worst.

  • It is the service that counts, the product can be found anywhere...

[Under Construction]This website will always be under construction...
The information contained within this website is confidential and only to be used in conjunction with the employment of Richard C. Mortensen.  All other use is unauthorized.
Send mail to webmaster@can-be-scanned.com with questions or comments about this web site.
Copyright © 2000 PR Enterprises, Inc.
Last modified: June 09, 2000