help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Computer shut down from within Octave?


From: Thomas Weber
Subject: Re: Computer shut down from within Octave?
Date: Thu, 4 Oct 2012 22:22:59 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Thu, Oct 04, 2012 at 09:56:40AM -0700, Ron.Simonson wrote:
> >Since apparently you're now running Debian, doing system("sudo halt
> >-n") should do it, except that this will require typing a password,
> >and assuming you setup Debian to use sudo.
> >
> >- Jordi G. H.
> 
> Unless you add NOPASSWD in your sudoers file.
> 
> username hostname = (root) NOPASSWD: /sbin/shutdown

I'd suggest to configure suspend to disk and use s2disk instead of
shutdown. The powersaving is the same, but if something went wrong in
your script, you still have your octave session open with the
intermediate result when resuming.

        Thomas


reply via email to

[Prev in Thread] Current Thread [Next in Thread]