[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Control of fan-speed on Lenovo Thinkpads
From: |
Michael Albinus |
Subject: |
Re: Control of fan-speed on Lenovo Thinkpads |
Date: |
Tue, 30 Mar 2021 10:12:43 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Jean Louis <bugs@gnu.support> writes:
Hi,
> (defun sudo (arguments)
> "Executes list ARGUMENTS with system command `sudo'."
> (let* ((command (format "sudo su -c -- root -c \"%s\"" (string-join (list
> arguments))))
> (return (shell-command-to-string command)))
> return))
This could be
(defun sudo (&rest arguments)
"Executes list ARGUMENTS with system command `sudo'."
(let ((default-directory "/sudo::"))
(shell-command-to-string (string-join arguments " "))))
> Thanks,
> Jean Louis
Best regards, Michael.
- Control of fan-speed on Lenovo Thinkpads, Jean Louis, 2021/03/29
- Re: Control of fan-speed on Lenovo Thinkpads,
Michael Albinus <=
- Re: Control of fan-speed on Lenovo Thinkpads, Jean Louis, 2021/03/30
- Re: Control of fan-speed on Lenovo Thinkpads, Jean Louis, 2021/03/30
- Re: Control of fan-speed on Lenovo Thinkpads, Michael Albinus, 2021/03/30
- Finding simpler better sudo for Emacs, Jean Louis, 2021/03/30
- Re: Finding simpler better sudo for Emacs, Michael Albinus, 2021/03/30
- Re: Finding simpler better sudo for Emacs, Jean Louis, 2021/03/30
- Re: Finding simpler better sudo for Emacs, Michael Albinus, 2021/03/30
- Re: Finding simpler better sudo for Emacs, Jean Louis, 2021/03/30
- Re: Finding simpler better sudo for Emacs, Michael Albinus, 2021/03/30
- Re: Finding simpler better sudo for Emacs, Jean Louis, 2021/03/30