Definitely.
You can use "at", for example.
Something like:
if [ -n "${XINITRC_IDLE_SHUTDOWN_TIME}" ]; then
echo "shutdown -h now"|at now + ${XINITRC_IDLE_SHUTDOWN_TIME}
fi
[prompt the user]
if [ "$?" = 0 ]; then
atq|while read a b; do atrm $a; done
fi
On Thu, May 19, 2011 at 3:24 PM, David Burgess <[email protected]> wrote:
> On Thu, May 19, 2011 at 12:20 PM, Gideon Romm
> <[email protected]> wrote:
>>
>> Start timer to shutdown
>> Prompt user
>> User clicks OK, kill timer
>
>
> Makes sense. I'm using the XINITRC_PROMPT_ON_EXIT=True option to
> prevent the loop, so would you recommend inserting that logic into
> /opt/ltsp/i386/usr/share/ltsp/xinitrc?
>
> db
>
> ------------------------------------------------------------------------------
> What Every C/C++ and Fortran developer Should Know!
> Read this article and learn how Intel has extended the reach of its
> next-generation tools to help Windows* and Linux* C/C++ and Fortran
> developers boost performance applications - including clusters.
> http://p.sf.net/sfu/intel-dev2devmay
> _____________________________________________________________________
> Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
> https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
> For additional LTSP help, try #ltsp channel on irc.freenode.net
>
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters.
http://p.sf.net/sfu/intel-dev2devmay
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net