Sponsored Content
Full Discussion: Retry Logic But In Cron
Top Forums UNIX for Beginners Questions & Answers Retry Logic But In Cron Post 303046099 by xgringo on Thursday 23rd of April 2020 05:31:39 PM
Old 04-23-2020
Retry Logic But In Cron

Hard to explain but we get two sets of files in, and index file and image file. Often the image file arrives way later, so we just run this resubmit.sh script I'm going to show in a second.
log="$log_dir/resub.`date +"%m%d%y"`.log"
ERRORFILE=`ls /apps/dwd/rip-robinprod/work/*err|wc -l`
dt=`date '+%d/%m/%Y_%H:%M:%S'`

cd $java_dir

if [ $ERRORFILE -gt 0 ]; then
   sed -i 's/�/-/g' $error_dir*.rpt
   echo "The below files have been resbumitted. " >> $log
   echo `ls -ltr $error_dir*err` >>$log
   /bin/java -cp "./TIPError.jar:./TIP31.jar:./TIP31msg_en_US.jar" ResubmitErrors -AuxprpawdRobin01 -P20904 >>$log
   echo "No Error Files Found $dt" >>$log ;\

This basically uses those jar files and tries to reconcile the files, if they don't work the files go back into a directory with the file extensions .err and rpt
Each time they do the resbumit.sh it updates the time stamp. How can we retry like 5 times and then kick out an email that this has been resumitted 5 times please notify vendor?

2 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Retry upon FTP failure

I am using the following code in a C Shell script to transfer files to a remote server: ftp -n logxx.xxxx.xxx.xxx.com <<DO_FTP1 quote user $user_name quote pass $password ascii put $js_file_name bin put $FinalZipFile quit DO_FTP1 This code works great except on those rare occasions... (8 Replies)
Discussion started by: phudgens
8 Replies

2. Shell Programming and Scripting

If then else - Retry operation

I need to read a file line by line, then depending on the contents of each line, type in a code that will get written to an array. The problem I have is when I ask the user to confirm the input code, if it is wrong, how do i Return to ask again? Any thing I try increments the file to the next... (6 Replies)
Discussion started by: kcpoole
6 Replies
oggz-rip(1)						      General Commands Manual						       oggz-rip(1)

oggz-rip -- Extract one or more logical bitstreams from an Ogg file. SYNOPSIS
oggz-rip [-o filename | --output filename ] filename oggz-rip [-h | --help ] [-v | --version ] Description oggz-rip extracts one or more tracks from an Ogg file. In Ogg terminology, oggz-rip extracts one or more logical bitstreams. For example, to extract just the Vorbis audio track from any Ogg file: oggz-rip -c vorbis input.ogx > output.ogg This will removed any other tracks: Skeleton, Theora, image, etc. The output will be a valid Ogg Vorbis I file, suitable for use on hard- ware players that do not support multiplexed (ie. multi-track) Ogg files. If the input file contains multiple Vorbis, the desired once can be specified by serialno with the -s option. Use oggz-info to view the serialno of each track in a file. Options oggz-rip accepts the following options: Miscellaneous options -o filename, --output filename Write output to the specified filename instead of printing it to standard output. -h, --help Display usage information and exit. -v, --version Output version information and exit. Filter options These options can be used multiple times. Pages matching ANY of the filter options will be included into the output. -s serialno, --serialno serialno Output streams with given serialno. -i index, --stream-index index Filter by stream index. These are assigned to streams in the order of their BOS pages, starting at 0. -c content-type --content-type content-type Filter by content-type. Run oggz-known-codecs(1) for a full list of codecs known by the installed version of oggz. EXAMPLES
Extract all bitstreams from file.ogg: oggz rip -o output.ogg file.ogg Extract only the Theora bitstream from file.ogv: oggz rip -c theora -o output.ogv file.ogv AUTHOR
David Kuehling January 1, 2005; COPYRIGHT
Copyright (C) 2005 CSIRO Australia SEE ALSO
oggz-merge(1), oggz-chop(1), oggz-dump(1), oggz-diff(1) hogg(1) oggz-rip(1)

Featured Tech Videos

All times are GMT -4. The time now is 07:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy