Ragib Hasan wrote:
>
> Query 1:
> Is there any command or program or something that can be called from
> some other program which can be used to exit X-Windows gracefully?
>
All windowmanagers provide this functionality.
> Query 2:
> If, while inside X-windows, I call halt or reboot, will there be any
> sort of problem? I mean, these things work, but I want to know if there
> are any side affects.
>
No.
> I need to know the above because I'm writing a small and tiny Tcl app
> for quickly exiting Linux or X at the click of a button.
>
Why do you want to invent the wheel? That app is absolutely
unneccessary, because you can always bind 'halt' or the window manager
dependant Exit function to buttons.
Marc