On my linux Ubunut platform I can use a simple unix script to update texlive 2013 in a weekly cron job, using
tlmgr update --all
On my Windows 8.1 PC, I'd like to do the same for my texlive 2013 portable single-user distribution (under c:/texlive), preferably using Cygwin. I can run tlmgr-gui as a short-cut to c:/texlive/bin/win32/tlmgr-gui.exe but this can only be done manually. It seems I should be able to run c:/texlive/bin/win32/tlmgr.bat but this just does now work.
I ran a default install on Windows. I note that the permissions under bin/win32 are all 000, e.g.
----------+ 1 ingber Users 1305 Dec 16 15:42 tlmgr.bat
but clicking on this under windows explorer still flashes a window that does not run any update. I do not want to simply
chmod -R 755 c:/texlive/bin/win32/
unless that would help?
If I copy tlmgr.bat to my Cygwin home directory, it has xr permissions, but if I run it I get:
"The filename, directory name, or volume label syntax is incorrect"
likely because it needs to be under its origin?
Surely someone already has a working simple script to batch-run
tlmgr update --all
on Windows?
Note that on Windows I would add this to a regular backup script scheduled to run as Administrator.
Thanks.
Lester
TeX Live and MacTeX ⇒ batch tlmgr
batch tlmgr
Last edited by ingber on Thu Dec 19, 2013 6:42 pm, edited 1 time in total.
Re: batch tlmgr
I figured out a kludge. Note that I added a soft link under c:/texlive:
ln -s . 2013
since the internet installer did not create a 2013 directory, and perhaps this may help me to auto-update to texlive 2014?
Here is my file xtlmgr.csh:
#!/bin/tcsh -f
setenv PATH /cygdrive/c/texlive/2013/bin/w32:$PATH
setenv MANPATH /cygdrive/c/texlive/2013/texmf-dist/doc/man:$MANPATH
setenv INFOPATH /cygdrive/c/texlive/2013/texmf-dist/doc/info:$INFOPATH
tlmgr.bat update --all repository http://mirror.ctan.org/systems/texlive/tlnet
ln -s . 2013
since the internet installer did not create a 2013 directory, and perhaps this may help me to auto-update to texlive 2014?
Here is my file xtlmgr.csh:
#!/bin/tcsh -f
setenv PATH /cygdrive/c/texlive/2013/bin/w32:$PATH
setenv MANPATH /cygdrive/c/texlive/2013/texmf-dist/doc/man:$MANPATH
setenv INFOPATH /cygdrive/c/texlive/2013/texmf-dist/doc/info:$INFOPATH
tlmgr.bat update --all repository http://mirror.ctan.org/systems/texlive/tlnet