Sponsored Content
Top Forums UNIX for Advanced & Expert Users How to manipulate the conditions between every retry in wget? Post 302615463 by Corona688 on Thursday 29th of March 2012 01:29:16 PM
Old 03-29-2012
wget isn't a programming language and can't do specified things on different numbers of retries.

You could disable retries completely and do the retry functionality yourself.

Code:
TRIES=0

while ! wget --tries=1 http://url/
do
        # Break the loop early if this is the first try and XXXX isn't found in logfile
        [ "$TRIES" -eq 0 ] && ! grep -q "XXXXXXXX" /path/to/logfile && break
        TRIES=`expr $TRIES + 1`
done

 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

SCO Unix printer waiting for auto-retry

Running SCO 5.0.5 with all the updates available on a Compaq 800 and just ran into this problem of the printer that is hooked up to /dev/lp0 &or /dev/lp. The printer has been working fine for 5 plus years and still works on another machine. I've uninstalled & re-installed the parallel port and... (0 Replies)
Discussion started by: cfaiman
0 Replies

2. UNIX for Advanced & Expert Users

Enomem in Journal Retry Error

Hi, Does anyone seen this error before.. kernel: ENOMEM in journal_alloc_journal_head, retrying. I encounter this problem on IBM eServers where when the above error appears usually the machine is dead or hanged. Unless a hard reboot is been done. Is this something have to do with the memory... (1 Reply)
Discussion started by: killerserv
1 Replies

3. Shell Programming and Scripting

retry process in ftp

hi #!/bin/bash SERVER=10.89.40.35 USER=xyz PASSWD=xyz ftp -in $SERVER<<EOF user $USER $PASSWD mkdir PPL cd /path of remote dir lcd /path of local dir hash bin put <file name> bye <<EOF The above ftp script i have to schedule in crontab at a particular instance of time run daily.... (2 Replies)
Discussion started by: rookie250
2 Replies

4. Shell Programming and Scripting

Retry every ten seconds while lockfile present

Hi, I have written below check lockfile script but need some tweaking on it. If there is a lockfile from present, I need the script to retry every 10 seconds to see if the lockfile is still there. After 120 seconds it should send an email. In my current version, if the script encounters... (6 Replies)
Discussion started by: Meert
6 Replies

5. 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

6. Shell Programming and Scripting

Shell Script to Retry and Exit

ok, so I'm trying to add a function to my local script that runs a command on a remote host. The reason why this is needed is that, there are other scripts that run different commands on the same remote host. so the problem is that many times there are multiple scripts being run on the remote... (1 Reply)
Discussion started by: SkySmart
1 Replies

7. 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

8. UNIX for Dummies Questions & Answers

Wget retry on 500 internal error

Hello Guys, I am trying to generate static site, I have perl script that wget the url, so the problem is sometimes wget has 500 internal error, this is failing to get that page. So I am thinking of retrying that url with 500 response. system $command = 'wget ... -i inputfile -o outfile" Is... (2 Replies)
Discussion started by: neal
2 Replies

9. Solaris

Unrecovered read error No retry

We encountered these error 2 times(e.g. Solaris 10 with NetWorker installed) with in the month of August, but we couldn't pin point the root cause, it might be bad sector, bad cable or software incompatibility? Do you experience these issue or please share your understanding about this? Thanks... (0 Replies)
Discussion started by: B@S
0 Replies

10. Shell Programming and Scripting

Wget - working in browser but cannot download from wget

Hi, I need to download a zip file from my the below US govt link. https://www.sam.gov/SAMPortal/extractfiledownload?role=WW&version=SAM&filename=SAM_PUBLIC_MONTHLY_20160207.ZIP I only have wget utility installed on the server. When I use the below command, I am getting error 403... (2 Replies)
Discussion started by: Prasannag87
2 Replies
DateTime::Locale::ta_IN(3)				User Contributed Perl Documentation				DateTime::Locale::ta_IN(3)

NAME
DateTime::Locale::ta_IN SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'ta_IN' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Tamil India. DATA
This locale inherits from the DateTime::Locale::ta locale. It contains the following data. Days Wide (format) XXXXXXX XXXXXXXX XXXXX XXXXXXX XXXXXX XXX XXXXXX Abbreviated (format) XX XX XX XX XX X XX Narrow (format) XX XX XX XX XX X XX Wide (stand-alone) XXXXXXX XXXXXXXX XXXXX XXXXXXX XXXXXX XXX XXXXXX Abbreviated (stand-alone) XX XX XX XX XX X XX Narrow (stand-alone) XX XX XX XX XX X XX Months Wide (format) XXXXX XXXXXXXX XXXXXX XXXXXX XX XXXX XXXX XXXXXX XXXXXXXXXX XXXXXXXX XXXXXXX XXXXXXXX Abbreviated (format) XX. XXXX. XXXX. XXX. XX XXXX XXXX XX. XXXX. XXX. XX. XXX. Narrow (format) X XX XX X XX XX XX X XX X X XX Wide (stand-alone) XXXXX XXXXXXXX XXXXXX XXXXXX XX XXXX XXXX XXXXXX XXXXXXXXXX XXXXXXXX XXXXXXX XXXXXXXX Abbreviated (stand-alone) XX. XXXX. XXXX. XXX. XX XXXX XXXX XX. XXXX. XXX. XX. XXX. Narrow (stand-alone) X XX XX X XX XX XX X XX X X XX Quarters Wide (format) 1XXX XXXXXXXX 2XXX XXXXXXXX 3XXX XXXXXXXX 4XXX XXXXXXXX Abbreviated (format) Q1 Q2 Q3 Q4 Narrow (format) 1 2 3 4 Wide (stand-alone) 1XXX XXXXXXXX 2XXX XXXXXXXX 3XXX XXXXXXXX 4XXX XXXXXXXX Abbreviated (stand-alone) Q1 Q2 Q3 Q4 Narrow (stand-alone) 1 2 3 4 Eras Wide XXXXXXXXXXXXXX XXXX XXX XXXXXX Abbreviated XXXX XXXX Narrow XXXX XXXX Date Formats Full 2008-02-05T18:30:30 = XXXXXXXX, 5 XXXXXXXX, 2008 1995-12-22T09:05:02 = XXXXXX, 22 XXXXXXXX, 1995 -0010-09-15T04:44:23 = XXX, 15 XXXXXXXXXX, -10 Long 2008-02-05T18:30:30 = 5 XXXXXXXX, 2008 1995-12-22T09:05:02 = 22 XXXXXXXX, 1995 -0010-09-15T04:44:23 = 15 XXXXXXXXXX, -10 Medium 2008-02-05T18:30:30 = 5 XXXX., 2008 1995-12-22T09:05:02 = 22 XXX., 1995 -0010-09-15T04:44:23 = 15 XXXX., -10 Short 2008-02-05T18:30:30 = 5-2-08 1995-12-22T09:05:02 = 22-12-95 -0010-09-15T04:44:23 = 15-9--10 Default 2008-02-05T18:30:30 = 5 XXXX., 2008 1995-12-22T09:05:02 = 22 XXX., 1995 -0010-09-15T04:44:23 = 15 XXXX., -10 Time Formats Full 2008-02-05T18:30:30 = 6:30:30 pm UTC 1995-12-22T09:05:02 = 9:05:02 am UTC -0010-09-15T04:44:23 = 4:44:23 am UTC Long 2008-02-05T18:30:30 = 6:30:30 pm UTC 1995-12-22T09:05:02 = 9:05:02 am UTC -0010-09-15T04:44:23 = 4:44:23 am UTC Medium 2008-02-05T18:30:30 = 6:30:30 pm 1995-12-22T09:05:02 = 9:05:02 am -0010-09-15T04:44:23 = 4:44:23 am Short 2008-02-05T18:30:30 = 6:30 pm 1995-12-22T09:05:02 = 9:05 am -0010-09-15T04:44:23 = 4:44 am Default 2008-02-05T18:30:30 = 6:30:30 pm 1995-12-22T09:05:02 = 9:05:02 am -0010-09-15T04:44:23 = 4:44:23 am Datetime Formats Full 2008-02-05T18:30:30 = XXXXXXXX, 5 XXXXXXXX, 2008 6:30:30 pm UTC 1995-12-22T09:05:02 = XXXXXX, 22 XXXXXXXX, 1995 9:05:02 am UTC -0010-09-15T04:44:23 = XXX, 15 XXXXXXXXXX, -10 4:44:23 am UTC Long 2008-02-05T18:30:30 = 5 XXXXXXXX, 2008 6:30:30 pm UTC 1995-12-22T09:05:02 = 22 XXXXXXXX, 1995 9:05:02 am UTC -0010-09-15T04:44:23 = 15 XXXXXXXXXX, -10 4:44:23 am UTC Medium 2008-02-05T18:30:30 = 5 XXXX., 2008 6:30:30 pm 1995-12-22T09:05:02 = 22 XXX., 1995 9:05:02 am -0010-09-15T04:44:23 = 15 XXXX., -10 4:44:23 am Short 2008-02-05T18:30:30 = 5-2-08 6:30 pm 1995-12-22T09:05:02 = 22-12-95 9:05 am -0010-09-15T04:44:23 = 15-9--10 4:44 am Default 2008-02-05T18:30:30 = 5 XXXX., 2008 6:30:30 pm 1995-12-22T09:05:02 = 22 XXX., 1995 9:05:02 am -0010-09-15T04:44:23 = 15 XXXX., -10 4:44:23 am Available Formats d (d) 2008-02-05T18:30:30 = 5 1995-12-22T09:05:02 = 22 -0010-09-15T04:44:23 = 15 EEEd (d EEE) 2008-02-05T18:30:30 = 5 XX 1995-12-22T09:05:02 = 22 XX -0010-09-15T04:44:23 = 15 X Hm (H:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 9:05 -0010-09-15T04:44:23 = 4:44 hm (h:mm a) 2008-02-05T18:30:30 = 6:30 pm 1995-12-22T09:05:02 = 9:05 am -0010-09-15T04:44:23 = 4:44 am Hms (H:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 9:05:02 -0010-09-15T04:44:23 = 4:44:23 hms (h:mm:ss a) 2008-02-05T18:30:30 = 6:30:30 pm 1995-12-22T09:05:02 = 9:05:02 am -0010-09-15T04:44:23 = 4:44:23 am M (L) 2008-02-05T18:30:30 = 2 1995-12-22T09:05:02 = 12 -0010-09-15T04:44:23 = 9 Md (M-d) 2008-02-05T18:30:30 = 2-5 1995-12-22T09:05:02 = 12-22 -0010-09-15T04:44:23 = 9-15 MEd (E, M-d) 2008-02-05T18:30:30 = XX, 2-5 1995-12-22T09:05:02 = XX, 12-22 -0010-09-15T04:44:23 = X, 9-15 MMdd (dd-MM) 2008-02-05T18:30:30 = 05-02 1995-12-22T09:05:02 = 22-12 -0010-09-15T04:44:23 = 15-09 MMM (LLL) 2008-02-05T18:30:30 = XXXX. 1995-12-22T09:05:02 = XXX. -0010-09-15T04:44:23 = XXXX. MMMd (MMM d) 2008-02-05T18:30:30 = XXXX. 5 1995-12-22T09:05:02 = XXX. 22 -0010-09-15T04:44:23 = XXXX. 15 MMMEd (E MMM d) 2008-02-05T18:30:30 = XX XXXX. 5 1995-12-22T09:05:02 = XX XXX. 22 -0010-09-15T04:44:23 = X XXXX. 15 MMMMd (d MMMM) 2008-02-05T18:30:30 = 5 XXXXXXXX 1995-12-22T09:05:02 = 22 XXXXXXXX -0010-09-15T04:44:23 = 15 XXXXXXXXXX MMMMEd (E MMMM d) 2008-02-05T18:30:30 = XX XXXXXXXX 5 1995-12-22T09:05:02 = XX XXXXXXXX 22 -0010-09-15T04:44:23 = X XXXXXXXXXX 15 ms (mm:ss) 2008-02-05T18:30:30 = 30:30 1995-12-22T09:05:02 = 05:02 -0010-09-15T04:44:23 = 44:23 y (y) 2008-02-05T18:30:30 = 2008 1995-12-22T09:05:02 = 1995 -0010-09-15T04:44:23 = -10 yM (y-M) 2008-02-05T18:30:30 = 2008-2 1995-12-22T09:05:02 = 1995-12 -0010-09-15T04:44:23 = -10-9 yMEd (EEE, y-M-d) 2008-02-05T18:30:30 = XX, 2008-2-5 1995-12-22T09:05:02 = XX, 1995-12-22 -0010-09-15T04:44:23 = X, -10-9-15 yMMM (y MMM) 2008-02-05T18:30:30 = 2008 XXXX. 1995-12-22T09:05:02 = 1995 XXX. -0010-09-15T04:44:23 = -10 XXXX. yMMMEd (EEE, y MMM d) 2008-02-05T18:30:30 = XX, 2008 XXXX. 5 1995-12-22T09:05:02 = XX, 1995 XXX. 22 -0010-09-15T04:44:23 = X, -10 XXXX. 15 yMMMM (y MMMM) 2008-02-05T18:30:30 = 2008 XXXXXXXX 1995-12-22T09:05:02 = 1995 XXXXXXXX -0010-09-15T04:44:23 = -10 XXXXXXXXXX yQ (y Q) 2008-02-05T18:30:30 = 2008 1 1995-12-22T09:05:02 = 1995 4 -0010-09-15T04:44:23 = -10 3 yQQQ (y QQQ) 2008-02-05T18:30:30 = 2008 Q1 1995-12-22T09:05:02 = 1995 Q4 -0010-09-15T04:44:23 = -10 Q3 yyQ (Q yy) 2008-02-05T18:30:30 = 1 08 1995-12-22T09:05:02 = 4 95 -0010-09-15T04:44:23 = 3 -10 yyyyMM (MM-yyyy) 2008-02-05T18:30:30 = 02-2008 1995-12-22T09:05:02 = 12-1995 -0010-09-15T04:44:23 = 09--010 yyyyMMMM (MMMM y) 2008-02-05T18:30:30 = XXXXXXXX 2008 1995-12-22T09:05:02 = XXXXXXXX 1995 -0010-09-15T04:44:23 = XXXXXXXXXX -10 Miscellaneous Prefers 24 hour time? No Local first day of the week XXXXXX SUPPORT
See DateTime::Locale. AUTHOR
Dave Rolsky <autarch@urth.org> COPYRIGHT
Copyright (c) 2008 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. This module was generated from data provided by the CLDR project, see the LICENSE.cldr in this distribution for details on the CLDR data's license. perl v5.18.2 2017-10-06 DateTime::Locale::ta_IN(3)
All times are GMT -4. The time now is 03:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy