cURL / Mailing Lists / curl-users / Single Mail

curl-users

curl with -w option run as batch

From: Lydia Eichelmann <l.eichelmann_at_web.de>
Date: Tue, 2 Apr 2013 12:48:53 +0200 (CEST)

Hi,

I am trying to use a curl command from cmd with the -w "%{time_total}" option. The command works fine run directly from cmd, but when I run it as a batch file it does not.

Without the -w option, the command worked fine from cmd directly and as batch, as well. So the problem seems to be the -w "%{time_total}". I run it on Windows 7, but I don't know, if that's important here.

Can you see the mistake where I can't?

Thanks, Lydia

My command (same for cmd and batch file):
curl "https://www.google.com/speech-api/full-duplex/v1/down?pair=xxx" -w "time_total: %{time_total}\n" > result.txt & curl "https://www.google.com/speech-api/full-duplex/v1/up?lang=de-DE&lm=dictation&client=myapp.mycompany.com&pair=xxx&key=yyy" --header "Content-Type: audio/amr; rate=8000" --data-binary @test_audio.amr -w "time_total: %{time_total}\n" > result.txt

-------------------------------------------------------------------
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 2013-04-02