Author Topic: Put Windows 7 to Sleep after LISP ends  (Read 1426 times)

0 Members and 1 Guest are viewing this topic.

mailmaverick

  • Bull Frog
  • Posts: 493
Put Windows 7 to Sleep after LISP ends
« on: January 05, 2017, 11:24:12 PM »
Hi

I have certain LISPS running for 3 to 4 hours on large files, doing heavy computations and other jugglery.

I want that at the end of my LISP, I should be able to put the computer to SLEEP because normally I run these LISPS in the night and the computer unnecessary remains ON until morning.

Is there any way to do it within LISP ?


Lee Mac

  • Seagull
  • Posts: 12913
  • London, England
Re: Put Windows 7 to Sleep after LISP ends
« Reply #1 on: January 06, 2017, 08:17:43 AM »
Hi

I have certain LISPS running for 3 to 4 hours on large files, doing heavy computations and other jugglery.

I want that at the end of my LISP, I should be able to put the computer to SLEEP because normally I run these LISPS in the night and the computer unnecessary remains ON until morning.

Is there any way to do it within LISP ?

Perhaps call a batch file to run shutdown /s /f

<< EDIT: Updated link- thanks RK >>
« Last Edit: January 06, 2017, 12:46:19 PM by Lee Mac »

rkmcswain

  • Swamp Rat
  • Posts: 978
Re: Put Windows 7 to Sleep after LISP ends
« Reply #2 on: January 06, 2017, 11:51:37 AM »
...or shutdown /s /t 0

FYI: Your link points to the older WinXP version of "shutdown".

Lee Mac

  • Seagull
  • Posts: 12913
  • London, England
Re: Put Windows 7 to Sleep after LISP ends
« Reply #3 on: January 06, 2017, 12:46:05 PM »
FYI: Your link points to the older WinXP version of "shutdown".

Oops! Thanks - updated above.

mailmaverick

  • Bull Frog
  • Posts: 493
Re: Put Windows 7 to Sleep after LISP ends
« Reply #4 on: January 07, 2017, 01:49:05 AM »
Thanks for your answers, but instead of shutdown, is there a way to put the computer to sleep ?

Lee Mac

  • Seagull
  • Posts: 12913
  • London, England
Re: Put Windows 7 to Sleep after LISP ends
« Reply #5 on: January 07, 2017, 05:05:05 AM »
Thanks for your answers, but instead of shutdown, is there a way to put the computer to sleep ?

Per the reference I posted, /h is hibernate.