cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: /dev/null on Solaris and NUL on Microsoft Windows

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 14 Jun 2011 09:47:35 -0700

On Tue, Jun 14, 2011 at 11:09:50AM -0400, Zhang, Jack wrote:
> I can use this command line to check download speed on Solaris 8
>
> curl -w 'Speed download:\t%{speed_download}' -o /dev/null -s http://
> www.google.com/ -m 1800 -x myCorpProxy:8080
>
> I replace ? -o /dev/null? with ?-o NUL? , try it on MS Windows 7.
>
> It seems curl cannot recognize NUL device.
>
> Could anyone point me out the correct syntax for ? -o /dev/null? on MS
> Windows.
>
> Or in later version of curl, could add ?NUL? device for Windows Platform?

NUL is an OS-supported device, so there's no need for special support for it
in curl. On Windows, either -o NUL or -o NUL: work for me (tested on wine and
Windows Server 2003).

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-06-14