bugGNU Wget - Bugs: bug #43342, Exit Status code for -N option

 
 

bug #43342: Exit Status code for -N option

Submitter:  Jamen <jamenlang>
Submitted:  Wed 01 Oct 2014 04:06:28 PM UTC
   
 
Category:  Feature Request Severity:  1 - Wish
Priority:  5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  None Operating System:  GNU/Linux
Reproducibility:  Every Time Fixed Release:  None
Planned Release:  None Regression:  None
Work Required:  None Patch Included:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 26 Oct 2014 08:19:13 PM UTC, comment #1: 

If the status code is 'success, either the file was downloaded/updated or not touched at all.
In this case check the time with 'stat' using %Y and/or %Z. If both did not change, the file wasn't downloaded/updated.

This approach also works when you download several files at once with one single Wget command.

Tim Ruehsen <rockdaboot>
Group administrator
Wed 01 Oct 2014 04:06:28 PM UTC, original submission:  

I'm trying to get the status of a download request using -N.

-N completes successfully, as it should, but 'success' is ambiguous with -N, either the file exists or the file was downloaded.

I'd like to know which one for use with bash scripting. I'm requesting a status code for the -N option. whether it be by success: file exists already, success: file doesn't exist but was downloaded. failure: various reasons.


Jamen <jamenlang>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by darnir (Updated the item)
  • -email is unavailable- added by rockdaboot (Posted a comment)
  • -email is unavailable- added by jamenlang (Submitted the item)
  •  

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-11-16 darnir Open/ClosedOpen Closed
    2014-10-26 rockdaboot Severity3 - Normal 1 - Wish

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code