curl-users
RE: Eliminating progress bar from scripts
Date: Wed, 17 Feb 2010 07:22:23 -0800
>I have few scripts that are using 'curl' to retrieve output files. I'm trying to find the best way to control the progress messages that are filling my log files. The >major issue is that the when the log file is reviewed, the progress bar statements are messing the viewer (e.g., the CR characters etc).
>From the manual, it looks as there are two options to disable the progress bar.
>1. Send both stdout and stderr to the same place.
>2. Use the '-s' to make curl silent.
>None of those options is working for my scripts. Option #1 does not work because the scripts are using '-o output' to specify the location of the curl output, >and the person who monitor the log file expect to see any error message to stderr. This is especially true with some large files, in which there might be a >problem during the transfer, which may generate both error message and output data. Sending both together will make it hard (or impossible) to separate the >two.
>Option #2 is not good, since it also shutdown important error messages.
>Does anyone know of a way to just disable the progress bar, while keeping all the other error reporting enabled ?
>Any plan to introduce a '--no-progress' that will disable the progress bar, and keep the error messages ?
The man page says that the -S/--show-error option will include the error messages in the output.
----------------------------------------------------------------------
CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-02-17