Pre-Logout Script

Tim tim at xendistar.co.uk
Sun Nov 18 14:44:22 CET 2012


On 18/11/12 11:57, Erik Habicht wrote:
>
>
> On Sun, Nov 18, 2012 at 11:24 AM, Tim <tim at xendistar.co.uk 
> <mailto:tim at xendistar.co.uk>> wrote:
>
>     On 17/11/12 20:32, Erik Habicht wrote:
>
>         Hi List,
>
>         is there a way to run a Script before logout?
>
>         I use the vmplayer and every time i forget to shutdown or
>         suspend the virtual machine before logout it get -KILLed. I
>         think it's like turn off your PC by pulling the power plug.
>
>         I wrote a script that send kill -TERM to the vmplayer and wait
>         until the vmplayer disappear from the process list. Now i need
>         to run the Script before logout.
>
>         Maybe someone can help me with this problem.
>
>         Best regards,
>            eriK
>
>     Cant you put the scripts in /etc/rc0.d (for shutdown) and
>     /etc/rc6.d (for reboots)
>
>
> Thank you, but that's executes to late. All windows are already closed 
> at this moment.
>
>
>     I am only asking as I don't know the answer but if I was wanting
>     to run a script that where I would start?
>
>
Could not simply add the shutdown\reboot command to the end your script 
and go from there? Although I guess that is more of a work around than 
solving your original problem

Tim



More information about the Xfce mailing list