help: a bash script to launch x-win and then do someting in x-win

Rasjid Wilcox rasjidw@openminddev.net
Sat Aug 17 09:51:00 GMT 2002


On Sat, 17 Aug 2002 9:53 pm, hongxun lee wrote:
> #!/bin/bash
>
> startx
> cd /cygdrive/c
> pwd
>
> For this particular script, x-win was launched but the commands followed
> never ran either in bash-window or x-win; Sorry but didn't find answers to
> my difficulty in those archives. Thanks

You have not looked very carefully at the Cygwin-XFree website.  See the users 
guide.  http://xfree.cygwin.com/docs/ug/using.html#using-starting

The answer to your question is probably to either use a modified startxwin.bat 
or startxwin.sh or even a modified startx, although the script as you have 
written it does not make any sense.

Are you trying to run those commands in an xterm?  Will the commands keep 
changing?  Nope, I still have no idea what you are really trying to do. 
However, I can say that what you are currently trying to do will not work.

PLEASE go and do some more reading.  As far as I can tell, your problem has 
nothing to do with Cygwin-XFree, but is a generic question about XWindows.  
There are better places to ask such questions.

Rasjid.



More information about the Cygwin-xfree mailing list