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: Jordi Gutiérrez Hermoso
Subject: Re: Computer shut down from within Octave?
Date: Thu, 4 Oct 2012 12:18:32 -0400

On 4 October 2012 11:50, babelproofreader <address@hidden> wrote:
> Is this possible? For example, if I want to run some script overnight while
> sleeping and I'm not sure exactly how long it will take, is there some
> command from within Octave that can be sent to the computer system to shut
> down the computer after the script has finished running? My motivation is
> simply that if the script stops at say 2 am I don't want the computer to be
> on unnecessarily for perhaps another 4 or 5 hours.

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.


reply via email to

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