Cygwin 1.7 & Windows Batch File & mount temp in windows temp before starting...
Jeremy Bopp
jeremy@bopp.net
Fri Aug 14 14:49:00 GMT 2009
Purrer Wolfgang wrote:
> I want to provide X â Services on a Windows Terminal Server.
>
> Cygwin is on a file share
>
> To get xwin to work, i have to mount /tmp to %temp%
>
> But with 1.7 the mount points arenât saved in the registry any more
>
> So a âWindows - batch â file â like this doesnt work
>
> mount %TEMP% /tmp
> xwin âac âquery 1.2.3.4
>
> How do you i proceed?
Maybe you could modify your batch file to contain something like the
following instead:
PATH=C:\cygwin\bin;%PATH%
C:\cygwin\bin\bash -c "mount \"$(cygpath -w \"$TEMP\")\" /tmp && xwin
âac âquery 1.2.3.4"
This should ensure that your new mount isn't lost before running xwin
since the same Cygwin session is running both mount and xwin. I tested
this over a remote desktop session running mintty instead of xwin, and
it seems to set things up like you want.
-Jeremy
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list