Re: executing script after an x session
Date: Thu, 14 Aug 2003 10:07:02 GMT
On Wed, 13 Aug 2003 08:43:26 +0200, bmgz5000 wrote:
> is their a way to execute a script ie. logout script after the user has
> exited XFree86?
Dunno. Read on.
> I setup .bshrc to "startx" for a particular user and want them to logout
> after clicking "logout" from the kde menu..
`.bashrc' is for non login shells -
use `.bash_profile', `.profile' or `.bash_login' instead ("man bash").
echo "startx && logout" >~user_name/.bash_profile
touch ~user_name/.bash_login ~user_name/.profile
echo "clear" >~user_name/.bash_logout
Make sure any xterm's the user can start are not called whith the `-ls'
flag - otherwise another X-server will get spawn.
> unless I just edit "logout" entry on the kde menu. to kill X then "sleep 4"
> then "exit"?
This seems ugly - may work though.
- Re: a grab bag of customizations
... supposed to do is change PS1 in bashrc. ... If not posting in a Distribution specific newsgroup, ... su - root ... I recommend using a test account for playing around with user settings. ...
- [opensuse] .bashrc tip for managing multiple boxes, multiple user configs
... but it was a clever approach to managing your .bashrc ... over multiple boxes with different user configs for root, you, and other users. ... ## functions & general aliases ... alias hist='showhist' ...
- Re: Problem installing ruby in linux virtual machine
... Although /usr/bin should bin in your path already. ... to root and didn't realise that root had it's own version of .bashrc. ... think i might have made a mistake by installing ruby into one of my home ...
- Re: Bash History How to?
... Frank Murphy wrote: ... created for root. ... And when "sudo" invoked by user. ... but nothing seems to be added to .bashrc ...
- Re: How to capture all the environment variables from shell?
... Never export anything from your .bashrc unless you ... | that is part of your personal login PATH. ... But when the login itself is a GUI the various terminals get ... make all new terminals run login shells. ...