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: Ron.Simonson
Subject: Re: Computer shut down from within Octave?
Date: Thu, 4 Oct 2012 09:56:40 -0700
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:10.0.6esrpre) Gecko/20120713 Thunderbird/10.0.6

On 10/04/2012 09:18 AM, Jordi Gutiérrez Hermoso 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



reply via email to

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