On 8/4/20 5:43 PM, Todd Benivegna wrote:
Right, but I don't know what NUT script is actually calling it.  I don't know how else I would check.

you could

-   use SHUTDOWNCMD ="|echo $SHELL > /tmp/WhatShellIsInUse" and check the content of that file after a shutdown is triggered
|

|- proceed as you suggested earlier and add the same function in dash's initialization file|

|- place all the commands suggested by Roger ( including the function itself ) in a standard script saved on disk ( as a file ) and invoke that script from the shutdown command|

|
|

||

On Tue, Aug 4, 2020 at 10:21 AM Manuel Wolfshant <wo...@nobugconsulting.ro <mailto:wo...@nobugconsulting.ro>> wrote:

    On 8/4/20 4:16 PM, Todd Benivegna wrote:
    > Ok, so now that I think of it, that might not actually work when
    it is
    > not run by me.  I guess that it all confirms that it works in Bash,
    > but I think when it runs on its own it would use Dash...

    it uses whatever shell you ask for in the first line of the script





_______________________________________________
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

Reply via email to