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

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

Post by hongxun le » Sun, 18 Aug 2002 19:53:54



Hi,

I was trying to make the script work (on Cygwin), but it didn't run as i
expected.
Before x-win lauch process was finished, the commands followed were finished
*already* in Bash-window, rather than in x-win.

What should I do ? Thanks

 
 
 

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

Post by hongxun le » Sun, 18 Aug 2002 20:57:11


#!/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


Quote:> Hi,

> I was trying to make the script work (on Cygwin), but it didn't run as i
> expected.
> Before x-win lauch process was finished, the commands followed were
finished
> *already* in Bash-window, rather than in x-win.

> What should I do ? Thanks


 
 
 

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

Post by Bill Marc » Thu, 22 Aug 2002 08:05:48


On Sat, 17 Aug 2002 07:57:11 -0400,

>#!/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

startx &
will start x, and the following commands should be executed while x is
running.
However, in your example, "pwd" will print to standard output, and when
the script ends you will be in the directory where you were before.
The "pwd" output could be mixed in with all the X startup messages.
If you want something printed on the X screen, you can use xterm or
xmessage.
 
 
 

1. PLEASE help: x-win won't let me use keyboard

I have run the x-windows config program several times - it asks about vid
cards, mice, etc.  but never once asks me about my keyboard.  But then I
try to run xwindows and it says I can't run it without configuring a
keyboard.

Is there a file I need to edit?  How can I do this?

PLEASE email - my acce4ss to news is limited.

2. pty limits

3. x-win won't start with eth0 enabled

4. Can I recover DOS data

5. x-win won't start with eth0 enabled!

6. Solaris 9 Install or Not

7. HELP: with w32i & Shamtek monitor 800x600 in x-win

8. Programming Parallel Port

9. Please help explain about X-win.

10. ** PLEASE HELP *** X-Win and printers

11. Need Help X-Win configuration

12. Mini-Linux:X-win with mouse,Help.

13. PLEASE help w/ X-win installation