SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 154 | Next

"Debian GNU/Linux : Guide to Installation and Usage"

Enter
this command: xterm xclock exec fvwm. xterm will start, and wait for you
to exit it. Then xclock will start; you'll have to exit xclock before fvwm
will start. The commands are run in sequence, since the script waits for
each one to exit.
You can use sequential execution to your advantage. Perhaps you want to
keep track of when you stop working every day:
xterm &
xclock &
fvwm
date >> ~/logout-time
This will fork off an xterm and an xclock and then run fvwm and wait for
it to finish. When you exit fvwm, it will move on to the last line, which
appends the current date and time to the file ~/logout-time.
Finally, you can have a program other than the window manager determine
when X exits:
xclock &
fvwm &
exec xterm
This script will run xclock and fvwm in the background and then replace
itself with xterm. When you exit the xterm, your X session will end.
The best way to learn how to use .xsession is to try some of these things
out. Again, be sure you use chmod to make it executable; failure to do so
is a common error.


Pages:
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166