<div dir="ltr">I have some news. Found out that in the standard PowerShell or CMD in Windows, there is no problem at all. I use tlmgr from R or RStudio terminal pane (which should use cmd.exe). If you have R installed, try to run tlmgr command in system2(). Furthermore, I tweaked the TLUtils.pm a bit to see what is going on step by step, with a few sleep():<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face="monospace">sub query_ctan_mirror_curl {<br> my $max_trial = 3;<br> my $warg = (win32() ? "-w %{url_effective} " : "-w '%{url_effective}' ");<br> for (my $i = 1; $i <= $max_trial; $i++) {<br> # -L -> follow redirects<br> # -s -> silent<br> # -w -> what to output after completion<br> my $cmd = "$::progs{'curl'} -Ls "<br> . "-o " . nulldev() . " "<br> . $warg<br> . "--connect-timeout $NetworkTimeout "<br> . "--max-time $NetworkTimeout "<br> . $TeXLiveServerURL;<br> ddebug("query_ctan_mirror_curl: cmd: $cmd\n");<br> debug("\n\n\n____this cmd wil be run in 10 sec:\n$cmd\n________");<br> sleep(10);<br> my $url = `$cmd`;<br> debug("____nul file should appear now____\n");<br> debug("____url was: $url ______\n");<br> debug("____sleep now for 20 sec______\n");<br> sleep(20);<br> if (length $url) {<br> # remove trailing slashes<br> $url =~ s,/*$,,;<br> ddebug("query_ctan_mirror_curl: returning url: $url\n");<br> return $url;<br> }<br> sleep(1);<br> }<br> return;<br>}</font><br></blockquote><div><br></div><div> In system shell, URL reads proper mirror URL, in RStudio or with system2 it reads <font face="monospace">%url_effective</font>. Pretty interesting.</div><div><br></div><div>JN</div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">čt 10. 2. 2022 v 11:11 odesílatel Zdenek Wagner <<a href="mailto:zdenek.wagner@gmail.com">zdenek.wagner@gmail.com</a>> napsal:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">As Philip wrote, the null device should be nul: with a colon, it is<br>
consistent with drive letters. It probably used to work without the<br>
colon in previous versions and has been changed recently. I have only<br>
Windows XP and Windows 7 thus I cannot check whether -O nul: helps.<br>
<br>
Zdeněk Wagner<br>
<a href="http://ttsm.icpf.cas.cz/team/wagner.shtml" rel="noreferrer" target="_blank">http://ttsm.icpf.cas.cz/team/wagner.shtml</a><br>
<br>
čt 10. 2. 2022 v 11:01 odesílatel Jan Netík <<a href="mailto:netikja@gmail.com" target="_blank">netikja@gmail.com</a>> napsal:<br>
><br>
> Interestingly, under Windows 11, when I run `wget <a href="http://ctan.org" rel="noreferrer" target="_blank">ctan.org</a> -O nul` in CMD with wget.exe shipped with texlive, I got no nul file. JN<br>
><br>
> čt 10. 2. 2022 v 10:25 odesílatel Philip Taylor (Royal Holloway) <<a href="mailto:P.Taylor@rhul.ac.uk" target="_blank">P.Taylor@rhul.ac.uk</a>> napsal:<br>
>><br>
>> On 10/02/2022 00:38, Norbert Preining wrote:<br>
>> > ..<br>
>> > Siep, anyone on Windows, can you confirm that a "nul" file is generated<br>
>> > when calling wget -O nul ... ?<br>
>><br>
>> Not here, not under Windows 7. But I believe that the "null" device<br>
>> should actually be specified as "nul:", not just "nul". As in "con:".<br>
>> etc. Maybe try adding the colon.<br>
>><br>
>><br>
>><br>
>> This email, its contents and any attachments are intended solely for the addressee and may contain confidential information. In certain circumstances, it may also be subject to legal privilege. Any unauthorised use, disclosure, or copying is not permitted. If you have received this email in error, please notify us and immediately and permanently delete it. Any views or opinions expressed in personal emails are solely those of the author and do not necessarily represent those of Royal Holloway, University of London. It is your responsibility to ensure that this email and any attachments are virus free.<br>
>><br>
</blockquote></div>